Skip to content

Commit 9716374

Browse files
committed
add cel selector to narrow down match
1 parent e3bfaeb commit 9716374

2 files changed

Lines changed: 17 additions & 0 deletions

File tree

argo_workflows/assets/configuration/spec.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,14 @@ files:
2323
overrides:
2424
value.example:
2525
- workflow-controller
26+
- name: cel_selector
27+
description: Advanced container selector rules for Autodiscovery
28+
enabled: true
29+
value:
30+
type: object
31+
example:
32+
containers:
33+
# Narrow down matching containers since the short image name is generic
34+
# and doesn't identify the container as being part of Argo.
35+
- container.image.reference.contains("argoproj/workflow-controller")
2636
- template: auto_conf/discovery

argo_workflows/datadog_checks/argo_workflows/data/auto_conf.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@
66
ad_identifiers:
77
- workflow-controller
88

9+
## @param cel_selector - mapping - optional
10+
## Advanced container selector rules for Autodiscovery
11+
#
12+
cel_selector:
13+
containers:
14+
- container.image.reference.contains("argoproj/workflow-controller")
15+
916
## Enables configuration discovery
1017
#
1118
discovery: {}

0 commit comments

Comments
 (0)