mirror of
https://github.com/prometheus/prometheus.git
synced 2026-05-28 04:02:21 -04:00
The node informers for pod roles respected filtering based on selectors ([1]). However, node selectors for pod roles were not allowed. This patch address that, and additionally adds pod filtering logic, to not populate their target groups when they belong to a filtered node. [1]:https://github.com/prometheus/prometheus/pull/10080/changes#diff-e9ca22962ad7d9a7bb4cb82d209dc2dd5301f457d8242da5535557866d2ea1eaR667 Signed-off-by: Pranshu Srivastava <rexagod@gmail.com>
11 lines
306 B
YAML
11 lines
306 B
YAML
scrape_configs:
|
|
- job_name: prometheus
|
|
kubernetes_sd_configs:
|
|
- role: pod
|
|
selectors:
|
|
- role: "node"
|
|
label: "foo=bar"
|
|
field: "metadata.status=Running"
|
|
- role: "service"
|
|
label: "baz=que"
|
|
field: "metadata.status=Running"
|