Skip to content

Commit 8f09692

Browse files
committed
update tag extraction for KSM kubernetes
1 parent be15c75 commit 8f09692

File tree

1 file changed

+31
-31
lines changed
  • content/en/containers/kubernetes

1 file changed

+31
-31
lines changed

content/en/containers/kubernetes/tag.md

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ spec:
163163
baz: qux
164164
```
165165

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>_`:
167167

168168
```yaml
169169
apiVersion: datadoghq.com/v2alpha1
@@ -174,7 +174,7 @@ spec:
174174
global:
175175
kubernetesResourcesLabelsAsTags:
176176
pods:
177-
"*": <PREFIX>_%%label%%
177+
"*": <PREFIX>_%%label%% # Note: wildcards do not work for KSM `kubernetes_state.*` metrics prior to agent version 7.73.0
178178
```
179179

180180
{{% /tab %}}
@@ -206,13 +206,13 @@ datadog:
206206
baz: qux
207207
```
208208
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>_`:
210210

211211
```yaml
212212
datadog:
213213
kubernetesResourcesLabelsAsTags:
214214
pods:
215-
"*": <PREFIX>_%%label%%
215+
"*": <PREFIX>_%%label%% # Note: wildcards do not work for KSM `kubernetes_state.*` metrics prior to agent version 7.73.0
216216
```
217217

218218
{{% /tab %}}
@@ -235,10 +235,10 @@ For example, you could set up:
235235
DD_KUBERNETES_RESOURCES_LABELS_AS_TAGS='{"nodes":{"kubernetes.io/arch": "arch"},"pods":{"baz":"qux"}}'
236236
```
237237

238-
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>_`:
239239

240240
```bash
241-
DD_KUBERNETES_RESOURCES_LABELS_AS_TAGS='{"pods":{"*": "<PREFIX>_%%label%%"}}'
241+
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
242242
```
243243

244244
{{% /tab %}}
@@ -337,7 +337,7 @@ spec:
337337
global:
338338
kubernetesResourcesAnnotationsAsTags:
339339
pods:
340-
"*": <PREFIX>_%%annotation%% #
340+
"*": <PREFIX>_%%annotation%% # Note: wildcards do not work for KSM `kubernetes_state.*` metrics prior to agent version 7.73.0
341341
```
342342

343343
{{% /tab %}}
@@ -369,13 +369,13 @@ datadog:
369369
baz: qux
370370
```
371371
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>_`:
373373

374374
```yaml
375375
datadog:
376376
kubernetesResourcesAnnotationsAsTags:
377377
pods:
378-
"*": <PREFIX>_%%annotation%%
378+
"*": <PREFIX>_%%annotation%% # Note: wildcards do not work for KSM `kubernetes_state.*` metrics prior to agent version 7.73.0
379379
```
380380

381381
{{% /tab %}}
@@ -398,10 +398,10 @@ For example, you could set up:
398398
DD_KUBERNETES_RESOURCES_ANNOTATIONS_AS_TAGS='{"nodes":{"kubernetes.io/arch": "arch"},"pods":{"baz":"qux"}}'
399399
```
400400

401-
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>_`:
402402

403403
```bash
404-
DD_KUBERNETES_RESOURCES_ANNOTATIONS_AS_TAGS='{"pods":{"*": "<PREFIX>_%%annotation%%"}}'
404+
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
405405
```
406406

407407
{{% /tab %}}
@@ -486,7 +486,7 @@ metadata:
486486
spec:
487487
global:
488488
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
490490
```
491491
{{% /tab %}}
492492

@@ -512,7 +512,7 @@ For Agent v7.24.0+, use the following environment variable configuration to add
512512
```yaml
513513
datadog:
514514
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
516516
```
517517
{{% /tab %}}
518518

@@ -532,7 +532,7 @@ DD_KUBERNETES_NODE_LABELS_AS_TAGS='{"kubernetes.io/arch":"arch"}'
532532
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>_`:
533533

534534
```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
536536
```
537537
{{% /tab %}}
538538
{{< /tabs >}}
@@ -586,7 +586,7 @@ metadata:
586586
spec:
587587
global:
588588
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
590590
```
591591
{{% /tab %}}
592592

@@ -606,12 +606,12 @@ datadog:
606606
app: kube_app
607607
```
608608
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>_`:
610610

611611
```yaml
612612
datadog:
613613
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
615615
```
616616
{{% /tab %}}
617617

@@ -628,10 +628,10 @@ For example, you could set up:
628628
DD_KUBERNETES_POD_LABELS_AS_TAGS='{"app":"kube_app"}'
629629
```
630630

631-
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>_`:
632632

633633
```bash
634-
DD_KUBERNETES_POD_LABELS_AS_TAGS='{"*":"<PREFIX>_%%label%%"}'
634+
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
635635
```
636636
{{% /tab %}}
637637
{{< /tabs >}}
@@ -675,7 +675,7 @@ spec:
675675
app: kube_app
676676
```
677677
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>_`:
679679

680680
```yaml
681681
apiVersion: datadoghq.com/v2alpha1
@@ -685,7 +685,7 @@ metadata:
685685
spec:
686686
global:
687687
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
689689
```
690690
{{% /tab %}}
691691

@@ -705,12 +705,12 @@ datadog:
705705
app: kube_app
706706
```
707707
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>_`:
709709

710710
```yaml
711711
datadog:
712712
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
714714
```
715715
{{% /tab %}}
716716

@@ -727,10 +727,10 @@ For example, you could set up:
727727
DD_KUBERNETES_POD_ANNOTATIONS_AS_TAGS='{"app":"kube_app"}'
728728
```
729729

730-
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>_`:
731731

732732
```bash
733-
DD_KUBERNETES_POD_ANNOTATIONS_AS_TAGS='{"*":"<PREFIX>_%%annotation%%"}'
733+
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
734734
```
735735
{{% /tab %}}
736736
{{< /tabs >}}
@@ -774,7 +774,7 @@ spec:
774774
app: kube_app
775775
```
776776
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>_`:
778778

779779
```yaml
780780
apiVersion: datadoghq.com/v2alpha1
@@ -784,7 +784,7 @@ metadata:
784784
spec:
785785
global:
786786
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
788788
```
789789
{{% /tab %}}
790790

@@ -804,12 +804,12 @@ datadog:
804804
app: kube_app
805805
```
806806
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>_`:
808808

809809
```yaml
810810
datadog:
811811
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
813813
```
814814
{{% /tab %}}
815815

@@ -826,10 +826,10 @@ For example, you could set up:
826826
DD_KUBERNETES_NAMESPACE_LABELS_AS_TAGS='{"app":"kube_app"}'
827827
```
828828

829-
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>_`:
830830

831831
```bash
832-
DD_KUBERNETES_NAMESPACE_LABELS_AS_TAGS='{"*":"<PREFIX>_%%label%%"}'
832+
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
833833
```
834834
{{% /tab %}}
835835
{{< /tabs >}}

0 commit comments

Comments
 (0)