Skip to content

Commit e37b5a8

Browse files
committed
nit updates
1 parent 1e3a959 commit e37b5a8

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

content/en/containers/guide/container-discovery-management.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -271,11 +271,15 @@ The `cel_workload_exclude` configuration is structured as a list of rule sets jo
271271

272272
The `products` field accepts `metrics`, `logs`, and `global` (exclude container from all listed products).
273273

274-
If the configuration contains typos or structural errors, the Agent process gracefully crashes to prevent collecting unintended telemetry which could impact billing. Additionally, the CEL compiler performs basic type checking to ensure valid operations on the container attributes.
274+
<div class="alert alert-danger">
275+
If the configuration contains structural errors or CEL syntax issues, the Agent process gracefully **crashes** to prevent collecting unintended telemetry which could impact billing.
276+
</div>
275277

276278
In the example below, metrics and logs are excluded for any `nginx` container running in the `staging` namespace. Additionally, logs are excluded for any container running the `redis` image, **or** any container within a pod that has the annotation `low_priority: "true"`.
277279
278280
```yaml
281+
# datadog.yaml
282+
279283
cel_workload_exclude:
280284
- products: [metrics, logs]
281285
rules:
@@ -288,7 +292,7 @@ cel_workload_exclude:
288292
- container.pod.annotations["low_priority"] == "true"
289293
```
290294
291-
The CEL-backed workload exclusion can also be configured by providing a JSON-formatted environment value to `DD_CEL_WORKLOAD_EXCLUDE`.
295+
The CEL-backed workload exclusion can also be configured by providing a **JSON**-formatted environment value to `DD_CEL_WORKLOAD_EXCLUDE`.
292296

293297
{{% collapse-content title="Setting environment variables" level="h4" expanded=false id="setting-environment-variables" %}}
294298

@@ -372,7 +376,7 @@ In **Agent v7.45+** you can set annotations on your Kubernetes pods to control A
372376
| `ad.datadoghq.com/<CONTAINER_NAME>.logs_exclude` | Excludes log collection from the container with `<CONTAINER_NAME>` in the pod |
373377
| `ad.datadoghq.com/<CONTAINER_NAME>.metrics_exclude` | Excludes metric collection from the container with `<CONTAINER_NAME>` in the pod |
374378

375-
The `ad.datadoghq.com/exclude` annotation set on the application pod takes the highest priority. This means that even if a container matches inclusion through `DD_CONTAINER_INCLUDE`, the Agent still ignores monitoring for that container. The same applies for the respective filtering configurations specific for metrics and logs.
379+
The `ad.datadoghq.com/exclude` annotation set on the application pod takes the highest priority. This means that even if a container matches inclusion through `DD_CONTAINER_INCLUDE` or ``, the Agent still ignores monitoring for that container. The same applies for the respective filtering configurations specific for metrics and logs.
376380

377381
When applying annotation-based exclusions, the Agent checks for all relevant exclusion annotations on the container. For example, when configuring logs for an NGINX container, the Agent will look for `ad.datadoghq.com/exclude`, `ad.datadoghq.com/logs_exclude`, `ad.datadoghq.com/nginx.exclude`, or `ad.datadoghq.com/nginx.logs_exclude` annotations to be `true` on the pod. The same applies for metrics.
378382

0 commit comments

Comments
 (0)