You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/en/containers/kubernetes/tag.md
+31-31Lines changed: 31 additions & 31 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -163,7 +163,7 @@ spec:
163
163
baz: qux
164
164
```
165
165
166
-
For Agent v7.24.0+, use the following environment variable configuration to add all resource labels as tags to your metrics, except those from KSM (`kubernetes_state.*`). In this example, pod tag names are prefixed with `<PREFIX>_`:
166
+
For Agent v7.24.0+, use the following environment variable configuration to add all resource labels as tags to your metrics. In this example, pod tag names are prefixed with `<PREFIX>_`:
167
167
168
168
```yaml
169
169
apiVersion: datadoghq.com/v2alpha1
@@ -174,7 +174,7 @@ spec:
174
174
global:
175
175
kubernetesResourcesLabelsAsTags:
176
176
pods:
177
-
"*": <PREFIX>_%%label%%
177
+
"*": <PREFIX>_%%label%% # Note: wildcards do not work for KSM `kubernetes_state.*` metrics prior to agent version 7.73.0
178
178
```
179
179
180
180
{{% /tab %}}
@@ -206,13 +206,13 @@ datadog:
206
206
baz: qux
207
207
```
208
208
209
-
For Agent v7.24.0+, use the following environment variable configuration to add all resource labels as tags to your metrics, except those from KSM (`kubernetes_state.*`). In this example, pod tag names are prefixed with `<PREFIX>_`:
209
+
For Agent v7.24.0+, use the following environment variable configuration to add all resource labels as tags to your metrics. In this example, pod tag names are prefixed with `<PREFIX>_`:
210
210
211
211
```yaml
212
212
datadog:
213
213
kubernetesResourcesLabelsAsTags:
214
214
pods:
215
-
"*": <PREFIX>_%%label%%
215
+
"*": <PREFIX>_%%label%% # Note: wildcards do not work for KSM `kubernetes_state.*` metrics prior to agent version 7.73.0
216
216
```
217
217
218
218
{{% /tab %}}
@@ -235,10 +235,10 @@ For example, you could set up:
For Agent v7.24.0+, use the following environment variable configuration to add all resource labels as tags to your metrics, except those from KSM (`kubernetes_state.*`). In this example, pod tag names are prefixed with `<PREFIX>_`:
238
+
For Agent v7.24.0+, use the following environment variable configuration to add all resource labels as tags to your metrics. In this example, pod tag names are prefixed with `<PREFIX>_`:
DD_KUBERNETES_RESOURCES_LABELS_AS_TAGS='{"pods":{"*": "<PREFIX>_%%label%%"}}'# Note: wildcards do not work for KSM `kubernetes_state.*` metrics prior to agent version 7.73.0
242
242
```
243
243
244
244
{{% /tab %}}
@@ -337,7 +337,7 @@ spec:
337
337
global:
338
338
kubernetesResourcesAnnotationsAsTags:
339
339
pods:
340
-
"*": <PREFIX>_%%annotation%% #
340
+
"*": <PREFIX>_%%annotation%% # Note: wildcards do not work for KSM `kubernetes_state.*` metrics prior to agent version 7.73.0
341
341
```
342
342
343
343
{{% /tab %}}
@@ -369,13 +369,13 @@ datadog:
369
369
baz: qux
370
370
```
371
371
372
-
For Agent v7.24.0+, use the following environment variable configuration to add all resource annotations as tags to your metrics, except those from KSM (`kubernetes_state.*`). In this example, pod tag names are prefixed with `<PREFIX>_`:
372
+
For Agent v7.24.0+, use the following environment variable configuration to add all resource annotations as tags to your metrics. In this example, pod tag names are prefixed with `<PREFIX>_`:
373
373
374
374
```yaml
375
375
datadog:
376
376
kubernetesResourcesAnnotationsAsTags:
377
377
pods:
378
-
"*": <PREFIX>_%%annotation%%
378
+
"*": <PREFIX>_%%annotation%% # Note: wildcards do not work for KSM `kubernetes_state.*` metrics prior to agent version 7.73.0
379
379
```
380
380
381
381
{{% /tab %}}
@@ -398,10 +398,10 @@ For example, you could set up:
For Agent v7.24.0+, use the following environment variable configuration to add all resource annotations as tags to your metrics, except those from KSM (`kubernetes_state.*`). In this example, pod tag names are prefixed with `<PREFIX>_`:
401
+
For Agent v7.24.0+, use the following environment variable configuration to add all resource annotations as tags to your metrics. In this example, pod tag names are prefixed with `<PREFIX>_`:
DD_KUBERNETES_RESOURCES_ANNOTATIONS_AS_TAGS='{"pods":{"*": "<PREFIX>_%%annotation%%"}}'# Note: wildcards do not work for KSM `kubernetes_state.*` metrics prior to agent version 7.73.0
405
405
```
406
406
407
407
{{% /tab %}}
@@ -486,7 +486,7 @@ metadata:
486
486
spec:
487
487
global:
488
488
nodeLabelsAsTags:
489
-
"*": <PREFIX>_%%label%% # Note: wildcards do not work for KSM metrics before version 7.73
489
+
"*": <PREFIX>_%%label%% # Note: wildcards do not work for KSM `kubernetes_state.*` metrics prior to agent version 7.73.0
490
490
```
491
491
{{% /tab %}}
492
492
@@ -512,7 +512,7 @@ For Agent v7.24.0+, use the following environment variable configuration to add
512
512
```yaml
513
513
datadog:
514
514
nodeLabelsAsTags:
515
-
"*": <PREFIX>_%%label%% # Note: wildcards do not work for KSM metrics before version 7.73
515
+
"*": <PREFIX>_%%label%% # Note: wildcards do not work for KSM `kubernetes_state.*` metrics prior to agent version 7.73.0
For Agent v7.24.0+, use the following environment variable configuration to add all node labels as tags to your metrics. In this example, the tags' tag names are prefixed with `<PREFIX>_`:
533
533
534
534
```bash
535
-
DD_KUBERNETES_NODE_LABELS_AS_TAGS='{"*":"<PREFIX>_%%label%%"}' # Note: wildcards do not work for KSM metrics before version 7.73
535
+
DD_KUBERNETES_NODE_LABELS_AS_TAGS='{"*":"<PREFIX>_%%label%%"}'# Note: wildcards do not work for KSM `kubernetes_state.*` metrics prior to agent version 7.73.0
536
536
```
537
537
{{% /tab %}}
538
538
{{< /tabs >}}
@@ -586,7 +586,7 @@ metadata:
586
586
spec:
587
587
global:
588
588
podLabelsAsTags:
589
-
"*": <PREFIX>_%%label%% # Note: wildcards do not work for KSM metrics before version 7.73
589
+
"*": <PREFIX>_%%label%% # Note: wildcards do not work for KSM `kubernetes_state.*` metrics prior to agent version 7.73.0
590
590
```
591
591
{{% /tab %}}
592
592
@@ -606,12 +606,12 @@ datadog:
606
606
app: kube_app
607
607
```
608
608
609
-
For Agent v7.24.0+, use the following environment variable configuration to add all pod labels as tags to your metrics, except those from KSM (`kubernetes_state.*`). In this example, the tags' names are prefixed with `<PREFIX>_`:
609
+
For Agent v7.24.0+, use the following environment variable configuration to add all pod labels as tags to your metrics. In this example, the tags' names are prefixed with `<PREFIX>_`:
610
610
611
611
```yaml
612
612
datadog:
613
613
podLabelsAsTags:
614
-
"*": <PREFIX>_%%label%% # Note: wildcards do not work for KSM metrics
614
+
"*": <PREFIX>_%%label%% # Note: wildcards do not work for KSM `kubernetes_state.*` metrics prior to agent version 7.73.0
615
615
```
616
616
{{% /tab %}}
617
617
@@ -628,10 +628,10 @@ For example, you could set up:
For Agent v7.24.0+, use the following environment variable configuration to add all pod labels as tags to your metrics, except those from KSM (`kubernetes_state.*`). In this example, the tags' names are prefixed with `<PREFIX>_`:
631
+
For Agent v7.24.0+, use the following environment variable configuration to add all pod labels as tags to your metrics. In this example, the tags' names are prefixed with `<PREFIX>_`:
DD_KUBERNETES_POD_LABELS_AS_TAGS='{"*":"<PREFIX>_%%label%%"}'# Note: wildcards do not work for KSM `kubernetes_state.*` metrics prior to agent version 7.73.0
635
635
```
636
636
{{% /tab %}}
637
637
{{< /tabs >}}
@@ -675,7 +675,7 @@ spec:
675
675
app: kube_app
676
676
```
677
677
678
-
For Agent v7.24.0+, use the following environment variable configuration to add all pod annotations as tags to your metrics, except those from KSM (`kubernetes_state.*`). In this example, the tags' names are prefixed with `<PREFIX>_`:
678
+
For Agent v7.24.0+, use the following environment variable configuration to add all pod annotations as tags to your metrics. In this example, the tags' names are prefixed with `<PREFIX>_`:
679
679
680
680
```yaml
681
681
apiVersion: datadoghq.com/v2alpha1
@@ -685,7 +685,7 @@ metadata:
685
685
spec:
686
686
global:
687
687
podAnnotationsAsTags:
688
-
"*": <PREFIX>_%%annotation%% # Note: wildcards do not work for KSM metrics
688
+
"*": <PREFIX>_%%annotation%% # Note: wildcards do not work for KSM `kubernetes_state.*` metrics prior to agent version 7.73.0
689
689
```
690
690
{{% /tab %}}
691
691
@@ -705,12 +705,12 @@ datadog:
705
705
app: kube_app
706
706
```
707
707
708
-
For Agent v7.24.0+, use the following environment variable configuration to add all pod annotation as tags to your metrics, except those from KSM (`kubernetes_state.*`). In this example, the tags' names are prefixed with `<PREFIX>_`:
708
+
For Agent v7.24.0+, use the following environment variable configuration to add all pod annotation as tags to your metrics. In this example, the tags' names are prefixed with `<PREFIX>_`:
709
709
710
710
```yaml
711
711
datadog:
712
712
podAnnotationsAsTags:
713
-
"*": <PREFIX>_%%annotation%% # Note: wildcards do not work for KSM metrics
713
+
"*": <PREFIX>_%%annotation%% # Note: wildcards do not work for KSM `kubernetes_state.*` metrics prior to agent version 7.73.0
714
714
```
715
715
{{% /tab %}}
716
716
@@ -727,10 +727,10 @@ For example, you could set up:
For Agent v7.24.0+, use the following environment variable configuration to add all pod annotations as tags to your metrics, except those from KSM (`kubernetes_state.*`). In this example, the tags' names are prefixed with `<PREFIX>_`:
730
+
For Agent v7.24.0+, use the following environment variable configuration to add all pod annotations as tags to your metrics. In this example, the tags' names are prefixed with `<PREFIX>_`:
DD_KUBERNETES_POD_ANNOTATIONS_AS_TAGS='{"*":"<PREFIX>_%%annotation%%"}'# Note: wildcards do not work for KSM `kubernetes_state.*` metrics prior to agent version 7.73.0
734
734
```
735
735
{{% /tab %}}
736
736
{{< /tabs >}}
@@ -774,7 +774,7 @@ spec:
774
774
app: kube_app
775
775
```
776
776
777
-
For Agent v7.24.0+, use the following environment variable configuration to add all namespace labels as tags to your metrics, except those from KSM (`kubernetes_state.*`). In this example, the tags' names are prefixed with `<PREFIX>_`:
777
+
For Agent v7.24.0+, use the following environment variable configuration to add all namespace labels as tags to your metrics. In this example, the tags' names are prefixed with `<PREFIX>_`:
778
778
779
779
```yaml
780
780
apiVersion: datadoghq.com/v2alpha1
@@ -784,7 +784,7 @@ metadata:
784
784
spec:
785
785
global:
786
786
namespaceLabelsAsTags:
787
-
"*": <PREFIX>_%%label%% # Note: wildcards do not work for KSM metrics
787
+
"*": <PREFIX>_%%label%% # Note: wildcards do not work for KSM `kubernetes_state.*` metrics prior to agent version 7.73.0
788
788
```
789
789
{{% /tab %}}
790
790
@@ -804,12 +804,12 @@ datadog:
804
804
app: kube_app
805
805
```
806
806
807
-
For Agent v7.24.0+, use the following environment variable configuration to add all namespace labels as tags to your metrics, except those from KSM (`kubernetes_state.*`). In this example, the tags' names are prefixed with `<PREFIX>_`:
807
+
For Agent v7.24.0+, use the following environment variable configuration to add all namespace labels as tags to your metrics. In this example, the tags' names are prefixed with `<PREFIX>_`:
808
808
809
809
```yaml
810
810
datadog:
811
811
namespaceLabelsAsTags:
812
-
"*": <PREFIX>_%%label%% # Note: wildcards do not work for KSM metrics
812
+
"*": <PREFIX>_%%label%% # Note: wildcards do not work for KSM `kubernetes_state.*` metrics prior to agent version 7.73.0
813
813
```
814
814
{{% /tab %}}
815
815
@@ -826,10 +826,10 @@ For example, you could set up:
For Agent v7.24.0+, use the following environment variable configuration to add all namespace labels as tags to your metrics, except those from KSM (`kubernetes_state.*`). In this example, the tags' names are prefixed with `<PREFIX>_`:
829
+
For Agent v7.24.0+, use the following environment variable configuration to add all namespace labels as tags to your metrics. In this example, the tags' names are prefixed with `<PREFIX>_`:
DD_KUBERNETES_NAMESPACE_LABELS_AS_TAGS='{"*":"<PREFIX>_%%label%%"}'# Note: wildcards do not work for KSM `kubernetes_state.*` metrics prior to agent version 7.73.0
0 commit comments