mirror of https://github.com/prometheus/prometheus
Merge pull request #1313 from fabric8io/kubernetes-discovery
Kubernetes Discovery: Ensure metrics path isn't overwritten in example relabelingpull/1327/head
commit
944b1f7e84
|
@ -61,6 +61,7 @@ scrape_configs:
|
||||||
- source_labels: [__meta_kubernetes_service_annotation_prometheus_io_path]
|
- source_labels: [__meta_kubernetes_service_annotation_prometheus_io_path]
|
||||||
action: replace
|
action: replace
|
||||||
target_label: __metrics_path__
|
target_label: __metrics_path__
|
||||||
|
regex: (.+)
|
||||||
- source_labels: [__address__, __meta_kubernetes_service_annotation_prometheus_io_port]
|
- source_labels: [__address__, __meta_kubernetes_service_annotation_prometheus_io_port]
|
||||||
action: replace
|
action: replace
|
||||||
target_label: __address__
|
target_label: __address__
|
||||||
|
|
Loading…
Reference in New Issue