Fix prom scraping

This commit is contained in:
IamTheFij 2022-05-18 14:22:52 -07:00
parent 8d3d0d0224
commit fb9e9017ff

View File

@ -133,6 +133,9 @@ scrape_configs:
consul_sd_configs:
- server: "${var.consul_address}"
relabel_configs:
- source_labels: [__meta_consul_service]
action: drop
regex: (.+)-sidecar-proxy
- source_labels: [__meta_consul_service_metadata_metrics_addr]
action: keep
regex: (.+)
@ -153,7 +156,7 @@ scrape_configs:
- server: "${var.consul_address}"
relabel_configs:
- source_labels: [__meta_consul_service]
action: drop
action: keep
regex: (.+)-sidecar-proxy
- source_labels: [__meta_consul_service_metadata_envoy_metrics_addr]
action: keep