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
+16-15Lines changed: 16 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -326,7 +326,7 @@ spec:
326
326
baz: qux
327
327
```
328
328
329
-
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>_`:
329
+
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>_`:
For Agent v7.24.0+, use the following environment variable configuration to add all node labels as tags to your metrics, except those from KSM (`kubernetes_state.*`). In this example, the tag' names are prefixed with `<PREFIX>_`:
479
+
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 tag' names are prefixed with `<PREFIX>_`:
480
480
481
481
```yaml
482
482
apiVersion: datadoghq.com/v2alpha1
@@ -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
489
+
"*": <PREFIX>_%%label%% # Note: wildcards do not work for KSM metrics before version 7.73
490
490
```
491
491
{{% /tab %}}
492
492
@@ -506,13 +506,13 @@ datadog:
506
506
kubernetes.io/arch: arch
507
507
```
508
508
509
-
For Agent v7.24.0+, use the following environment variable configuration to add all node labels as tags to your metrics, except those from KSM (`kubernetes_state.*`). In this example, the tags' names are prefixed with `<PREFIX>_`:
509
+
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' names are prefixed with `<PREFIX>_`:
510
510
511
511
512
512
```yaml
513
513
datadog:
514
514
nodeLabelsAsTags:
515
-
"*": <PREFIX>_%%label%% # Note: wildcards do not work for KSM metrics
515
+
"*": <PREFIX>_%%label%% # Note: wildcards do not work for KSM metrics before version 7.73
516
516
```
517
517
{{% /tab %}}
518
518
@@ -529,17 +529,17 @@ For example, you could set up:
For Agent v7.24.0+, use the following environment variable configuration to add all node labels as tags to your metrics, except those from KSM (`kubernetes_state.*`). In this example, the tags' tag names are prefixed with `<PREFIX>_`:
532
+
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>_`:
DD_KUBERNETES_NODE_LABELS_AS_TAGS='{"*":"<PREFIX>_%%label%%"}' # Note: wildcards do not work for KSM metrics before version 7.73
536
536
```
537
537
{{% /tab %}}
538
538
{{< /tabs >}}
539
539
540
540
**Note**: Custom metrics may impact billing. See the [custom metrics billing page][3] for more information.
541
541
542
-
### Pod labels as tags
542
+
#### Pod labels as tags
543
543
544
544
<div class="alert alert-info">
545
545
@@ -576,7 +576,7 @@ spec:
576
576
app: kube_app
577
577
```
578
578
579
-
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>_`:
579
+
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>_`:
580
580
581
581
```yaml
582
582
apiVersion: datadoghq.com/v2alpha1
@@ -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
589
+
"*": <PREFIX>_%%label%% # Note: wildcards do not work for KSM metrics before version 7.73
0 commit comments