mirror of
https://github.com/prometheus/prometheus
synced 2024-12-27 00:53:12 +00:00
8e53c19f9c
Close #6807 Co-authored-by @shuttie Signed-off-by: Aleksandra Gacek <algacek@google.com>
15 lines
397 B
YAML
15 lines
397 B
YAML
scrape_configs:
|
|
- job_name: prometheus
|
|
kubernetes_sd_configs:
|
|
- role: endpoints
|
|
selectors:
|
|
- role: "pod"
|
|
label: "foo=bar"
|
|
field: "metadata.status=Running"
|
|
- role: "service"
|
|
label: "foo=bar"
|
|
field: "metadata.status=Running"
|
|
- role: "endpoints"
|
|
label: "foo=bar"
|
|
field: "metadata.status=Running"
|