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/guide/container-discovery-management.md
+105-3Lines changed: 105 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -253,10 +253,111 @@ Set `DD_EXCLUDE_PAUSE_CONTAINER` to `false`.
253
253
254
254
## Advanced CEL exclusion
255
255
256
-
Use the parameters in the table below to configure filtering for container
256
+
In **Agent v7.73+**, you can use the `cel_workload_exclude` configuration option to filter containers from Autodiscovery. This feature allows you to define [Common Expression Langauge][3] rules with fine granularity to target containers to be excluded from telemetry collection by product.
257
257
258
+
Use the defined parameters for the container representation in the table below to configure filtering rules:
258
259
259
-
. Each inclusion or exclusion is defined as a list of space-separated regex strings. You can include or exclude containers based on their:
| `container.image.reference` | The full reference of the container image (registry, repo, tag/digest). |
264
+
| `container.pod.name` | The name of the pod running the container. |
265
+
| `container.pod.namespace` | The Kubernetes namespace of the pod. |
266
+
| `container.pod.annotations` | The annotations applied to the pod (key-value map). |
267
+
268
+
### Configuration structure
269
+
270
+
The `cel_workload_exclude` configuration is structured as a list of rule sets joined by logical **ORs**. Each rule set defines the `products` to exclude and the corresponding CEL `rules` to match against containers.
271
+
272
+
The `products` field accepts `metrics`, `logs`, and `global` (exclude container from all listed products).
273
+
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.
275
+
276
+
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"`.
0 commit comments