allow prom to scrape services and endpoints

This commit is contained in:
Finn 2024-07-10 20:18:39 -07:00
parent 8280da0007
commit 4b7717d07a
2 changed files with 6 additions and 2 deletions

View file

@ -14,6 +14,10 @@
action: replace
target_label: __metrics_path__
regex: (.+)
- source_labels: [__meta_kubernetes_pod_annotation_prometheus_io_scheme]
action: replace
target_label: __scheme__
regex: (.+)
- action: labelmap
regex: __meta_kubernetes_pod_label_(.+)
- source_labels: [__meta_kubernetes_namespace]

View file

@ -2,5 +2,5 @@
path: /rules/-
value:
apiGroups: [""]
resources: [pods]
verbs: [list, get, watch]
resources: [pods, services, endpoints]
verbs: [list, watch]