prometheus: relabel instance for hass
This commit is contained in:
parent
93399e0b8f
commit
c2eacbd13f
@ -93,6 +93,9 @@ scrape_configs:
|
|||||||
consul_sd_configs:
|
consul_sd_configs:
|
||||||
- server: 'consul.service.consul:8500'
|
- server: 'consul.service.consul:8500'
|
||||||
services: ['hass']
|
services: ['hass']
|
||||||
|
relabel_configs:
|
||||||
|
- source_labels: ['__meta_consul_dc']
|
||||||
|
target_label: instance
|
||||||
scrape_interval: 60s
|
scrape_interval: 60s
|
||||||
metrics_path: /api/prometheus
|
metrics_path: /api/prometheus
|
||||||
authorization:
|
authorization:
|
||||||
|
Loading…
Reference in New Issue
Block a user