prometheus: relabel instance for hass

This commit is contained in:
vincent 2022-11-21 20:33:35 +01:00
parent 93399e0b8f
commit c2eacbd13f

View File

@ -93,6 +93,9 @@ scrape_configs:
consul_sd_configs:
- server: 'consul.service.consul:8500'
services: ['hass']
relabel_configs:
- source_labels: ['__meta_consul_dc']
target_label: instance
scrape_interval: 60s
metrics_path: /api/prometheus
authorization: