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/getting_started/tagging/unified_service_tagging.md
+28-25Lines changed: 28 additions & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,9 @@ further_reading:
13
13
---
14
14
15
15
## Overview
16
-
Unified service tagging ties Datadog telemetry together through the use of three [reserved tags][1]: `env`, `service`, and `version`. With these three tags you can:
16
+
Unified service tagging ties Datadog telemetry together through the use of three [reserved tags][1]: `env`, `service`, and `version`.
17
+
18
+
With these three tags you can:
17
19
18
20
- Identify deployment impact with trace and container metrics filtered by version
19
21
- Navigate seamlessly across traces, metrics, and logs with consistent tags
@@ -94,12 +96,12 @@ template:
94
96
To configure pod-level metrics, add the following standard labels (`tags.datadoghq.com`) to the pod spec of a Deployment, StatefulSet, or Job:
95
97
96
98
```yaml
97
-
template:
98
-
metadata:
99
-
labels:
100
-
tags.datadoghq.com/env: <ENV>
101
-
tags.datadoghq.com/service: <SERVICE>
102
-
tags.datadoghq.com/version: <VERSION>
99
+
template:
100
+
metadata:
101
+
labels:
102
+
tags.datadoghq.com/env: <ENV>
103
+
tags.datadoghq.com/service: <SERVICE>
104
+
tags.datadoghq.com/version: <VERSION>
103
105
```
104
106
These labels cover pod-level Kubernetes CPU, memory, network, and disk metrics, and can be used for injecting `DD_ENV`, `DD_SERVICE`, and `DD_VERSION` into your service's container through [Kubernetes's downward API][1].
105
107
@@ -137,21 +139,21 @@ spec:
137
139
To configure [APM Tracer][3] and [StatsD client][4] environment variables, use the [Kubernetes's downward API][1] in the format below:
@@ -213,7 +215,7 @@ As explained in the full configuration, these labels can be set in a Dockerfile
213
215
214
216
Set the `DD_ENV`, `DD_SERVICE`, and `DD_VERSION` environment variables and corresponding Docker labels in your container's runtime environment to your get the full range of unified service tagging. For instance, you can set all of this configuration in one place through your ECS task definition:
215
217
216
-
```json
218
+
```
217
219
"environment": [
218
220
{
219
221
"name": "DD_ENV",
@@ -227,19 +229,20 @@ Set the `DD_ENV`, `DD_SERVICE`, and `DD_VERSION` environment variables and corre
227
229
"name": "DD_VERSION",
228
230
"value": "<VERSION>"
229
231
}
230
-
]
231
232
232
233
"dockerLabels": {
233
234
"com.datadoghq.tags.env": "<ENV>",
234
235
"com.datadoghq.tags.service": "<SERVICE>",
235
236
"com.datadoghq.tags.version": "<VERSION>"
237
+
}
238
+
]
236
239
```
237
240
238
241
##### Partial configuration
239
242
240
243
If your service has no need for the Datadog environment variables (for example, third party software like Redis, PostgreSQL, NGINX, and applications not traced by APM) you can just use the Docker labels in your ECS task definition:
0 commit comments