Merge pull request #1240 from fabric8io/kubernetes-discovery

Kubernetes SD: Fix metrics path relabeling in example config
This commit is contained in:
Jimmi Dyson 2015-11-25 10:35:06 +00:00
commit de21676667

View file

@ -60,6 +60,7 @@ scrape_configs:
regex: (https?) regex: (https?)
- source_labels: [__meta_kubernetes_service_annotation_prometheus_io_path] - source_labels: [__meta_kubernetes_service_annotation_prometheus_io_path]
action: replace action: replace
regex: (.+)
target_label: __metrics_path__ target_label: __metrics_path__
- source_labels: [__address__, __meta_kubernetes_service_annotation_prometheus_io_port] - source_labels: [__address__, __meta_kubernetes_service_annotation_prometheus_io_port]
action: replace action: replace
@ -99,9 +100,8 @@ scrape_configs:
- source_labels: [__meta_kubernetes_role, __meta_kubernetes_service_annotation_prometheus_io_probe] - source_labels: [__meta_kubernetes_role, __meta_kubernetes_service_annotation_prometheus_io_probe]
action: keep action: keep
regex: service;true regex: service;true
- source_labels: [] - target_label: __address__
target_label: __address__ replacement: blackbox.default.svc:9115
replacement: prom-blackbox.default.svc:9115
- source_labels: [__address__] - source_labels: [__address__]
regex: (.*)(:80)? regex: (.*)(:80)?
target_label: __param_target target_label: __param_target