Fix prom scraping
This commit is contained in:
parent
8d3d0d0224
commit
fb9e9017ff
@ -133,6 +133,9 @@ scrape_configs:
|
|||||||
consul_sd_configs:
|
consul_sd_configs:
|
||||||
- server: "${var.consul_address}"
|
- server: "${var.consul_address}"
|
||||||
relabel_configs:
|
relabel_configs:
|
||||||
|
- source_labels: [__meta_consul_service]
|
||||||
|
action: drop
|
||||||
|
regex: (.+)-sidecar-proxy
|
||||||
- source_labels: [__meta_consul_service_metadata_metrics_addr]
|
- source_labels: [__meta_consul_service_metadata_metrics_addr]
|
||||||
action: keep
|
action: keep
|
||||||
regex: (.+)
|
regex: (.+)
|
||||||
@ -153,7 +156,7 @@ scrape_configs:
|
|||||||
- server: "${var.consul_address}"
|
- server: "${var.consul_address}"
|
||||||
relabel_configs:
|
relabel_configs:
|
||||||
- source_labels: [__meta_consul_service]
|
- source_labels: [__meta_consul_service]
|
||||||
action: drop
|
action: keep
|
||||||
regex: (.+)-sidecar-proxy
|
regex: (.+)-sidecar-proxy
|
||||||
- source_labels: [__meta_consul_service_metadata_envoy_metrics_addr]
|
- source_labels: [__meta_consul_service_metadata_envoy_metrics_addr]
|
||||||
action: keep
|
action: keep
|
||||||
|
Loading…
Reference in New Issue
Block a user