allow prom to scrape services and endpoints
This commit is contained in:
parent
8280da0007
commit
4b7717d07a
2 changed files with 6 additions and 2 deletions
|
@ -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]
|
||||
|
|
|
@ -2,5 +2,5 @@
|
|||
path: /rules/-
|
||||
value:
|
||||
apiGroups: [""]
|
||||
resources: [pods]
|
||||
verbs: [list, get, watch]
|
||||
resources: [pods, services, endpoints]
|
||||
verbs: [list, watch]
|
||||
|
|
Loading…
Reference in a new issue