Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 16 additions & 15 deletions content/en/containers/kubernetes/tag.md
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@
baz: qux
```

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

```yaml
apiVersion: datadoghq.com/v2alpha1
Expand All @@ -337,7 +337,7 @@
global:
kubernetesResourcesAnnotationsAsTags:
pods:
"*": <PREFIX>_%%annotation%%
"*": <PREFIX>_%%annotation%% #
```

{{% /tab %}}
Expand Down Expand Up @@ -438,8 +438,8 @@
</div>



### Node labels as tags
{{% collapse-content title="Legacy Configuration" level="h4" expanded=false id="legacy-configuration" %}}
#### Node labels as tags

<div class="alert alert-info">

Expand Down Expand Up @@ -476,7 +476,7 @@
kubernetes.io/arch: arch
```

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

```yaml
apiVersion: datadoghq.com/v2alpha1
Expand All @@ -486,7 +486,7 @@
spec:
global:
nodeLabelsAsTags:
"*": <PREFIX>_%%label%% # Note: wildcards do not work for KSM metrics
"*": <PREFIX>_%%label%% # Note: wildcards do not work for KSM metrics before version 7.73
```
{{% /tab %}}

Expand All @@ -506,13 +506,13 @@
kubernetes.io/arch: arch
```

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


```yaml
datadog:
nodeLabelsAsTags:
"*": <PREFIX>_%%label%% # Note: wildcards do not work for KSM metrics
"*": <PREFIX>_%%label%% # Note: wildcards do not work for KSM metrics before version 7.73
```
{{% /tab %}}

Expand All @@ -529,17 +529,17 @@
DD_KUBERNETES_NODE_LABELS_AS_TAGS='{"kubernetes.io/arch":"arch"}'
```

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

```bash
DD_KUBERNETES_NODE_LABELS_AS_TAGS='{"*":"<PREFIX>_%%label%%"}'
DD_KUBERNETES_NODE_LABELS_AS_TAGS='{"*":"<PREFIX>_%%label%%"}' # Note: wildcards do not work for KSM metrics before version 7.73
```
{{% /tab %}}
{{< /tabs >}}

**Note**: Custom metrics may impact billing. See the [custom metrics billing page][3] for more information.

### Pod labels as tags
#### Pod labels as tags

<div class="alert alert-info">

Expand Down Expand Up @@ -576,7 +576,7 @@
app: kube_app
```

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

Check notice on line 579 in content/en/containers/kubernetes/tag.md

View workflow job for this annotation

GitHub Actions / vale

Datadog.sentencelength

Suggestion: Try to keep your sentence length to 25 words or fewer.

```yaml
apiVersion: datadoghq.com/v2alpha1
Expand All @@ -586,7 +586,7 @@
spec:
global:
podLabelsAsTags:
"*": <PREFIX>_%%label%% # Note: wildcards do not work for KSM metrics
"*": <PREFIX>_%%label%% # Note: wildcards do not work for KSM metrics before version 7.73
```
{{% /tab %}}

Expand Down Expand Up @@ -638,7 +638,7 @@

**Note**: Custom metrics may impact billing. See the [custom metrics billing page][3] for more information.

### Pod annotations as tags
#### Pod annotations as tags

<div class="alert alert-info">

Expand Down Expand Up @@ -737,7 +737,7 @@

**Note**: Custom metrics may impact billing. See the [custom metrics billing page][3] for more information.

### Namespace labels as tags
#### Namespace labels as tags

<div class="alert alert-info">

Expand Down Expand Up @@ -835,6 +835,7 @@
{{< /tabs >}}

**Note**: Custom metrics may impact billing. See the [custom metrics billing page][3] for more information.
{{% /collapse-content %}}

### Container environment variables as tags

Expand Down
Loading