Skip to content

Commit

Permalink
Document the new annotations_as_tags parameter of the KSM core check (
Browse files Browse the repository at this point in the history
  • Loading branch information
L3n41c authored Dec 9, 2022
1 parent 947c857 commit 4dde065
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 6 deletions.
17 changes: 14 additions & 3 deletions kubernetes_state_core/assets/configuration/spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,26 @@ files:
- label_addonmanager_kubernetes_io_mode
- name: labels_as_tags
required: false
description: |
labels_as_tags allows to specify custom labels of kubernetes resources to be turned into Datadog tags attached the corresponding metrics.
value:
type: object
example:
labels_as_tags:
pod:
- "app_*"
app.kubernetes.io/name: kube_app_name
node:
- "zone"
- "team_*"
topology.kubernetes.io/region: kube_region
- name: annotations_as_tags
required: false
description: |
annotations_as_tags allows to specify custom annotations of kubernetes resources to be turned into Datadog tags attached the corresponding metrics.
value:
type: object
example:
annotations_as_tags:
pod:
my_pod_annotation: my_pod_tag
- name: labels_mapper
required: false
description: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,24 @@ instances:
# - label_addonmanager_kubernetes_io_mode

## @param labels_as_tags - map - optional
## labels_as_tags allows to specify custom labels of kubernetes resources to be turned into Datadog tags attached the corresponding metrics.
##
## Example:
#
# labels_as_tags:
# pod:
# - "app_*"
# app.kubernetes.io/name: kube_app_name
# node:
# - "zone"
# - "team_*"
# topology.kubernetes.io/region: kube_region

## @param annotations_as_tags - map - optional
## annotations_as_tags allows to specify custom annotations of kubernetes resources to be turned into Datadog tags attached the corresponding metrics.
##
## Example:
#
# annotations_as_tags:
# pod:
# my_pod_annotation: my_pod_tag

## @param labels_mapper - map - optional
## LabelsMapper can be used to translate kube-state-metrics labels to other tags.
Expand Down

0 comments on commit 4dde065

Please sign in to comment.