From d3934345e94382ce949f3fe63e7cceaf0f0f4b21 Mon Sep 17 00:00:00 2001 From: Jimmi Dyson Date: Tue, 12 Jan 2016 21:06:15 +0000 Subject: [PATCH] Kubernetes Discovery: Ensure metrics path isn't overwritten in example relabeling --- documentation/examples/prometheus-kubernetes.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/documentation/examples/prometheus-kubernetes.yml b/documentation/examples/prometheus-kubernetes.yml index 7e55aece2..8b45456a5 100644 --- a/documentation/examples/prometheus-kubernetes.yml +++ b/documentation/examples/prometheus-kubernetes.yml @@ -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__