Skip to content
This repository was archived by the owner on Mar 14, 2024. It is now read-only.

Commit 056633c

Browse files
author
SirNexus
committed
Check KIC scrape annotation in Prometheus
1 parent 977f851 commit 056633c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

examples/prometheus/nginx-plus-ingress-scrape-config.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
- source_labels: [__meta_kubernetes_pod_container_name]
66
action: keep
77
regex: nginx-plus-ingress
8+
- source_labels: [__meta_kubernetes_pod_annotation_prometheus_io_scrape]
9+
action: keep
10+
regex: true
811
- source_labels: [__address__, __meta_kubernetes_pod_annotation_prometheus_io_port]
912
action: replace
1013
target_label: __address__

0 commit comments

Comments
 (0)