mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-10 07:34:04 -08:00
Kubernetes Discovery: Ensure metrics path isn't overwritten in example relabeling
This commit is contained in:
parent
cb381e0bce
commit
d3934345e9
|
@ -61,6 +61,7 @@ scrape_configs:
|
|||
- source_labels: [__meta_kubernetes_service_annotation_prometheus_io_path]
|
||||
action: replace
|
||||
target_label: __metrics_path__
|
||||
regex: (.+)
|
||||
- source_labels: [__address__, __meta_kubernetes_service_annotation_prometheus_io_port]
|
||||
action: replace
|
||||
target_label: __address__
|
||||
|
|
Loading…
Reference in a new issue