add support to add labels to proxied metrics
This commit is contained in:
parent
876e9cd419
commit
72997385cd
1 changed files with 1 additions and 1 deletions
|
|
@ -64,7 +64,7 @@
|
||||||
static_configs:
|
static_configs:
|
||||||
- targets:
|
- targets:
|
||||||
- {{ inventory_hostname }}:{{ prometheus_agent.scrapers[item].proxy[j] }}
|
- {{ inventory_hostname }}:{{ prometheus_agent.scrapers[item].proxy[j] }}
|
||||||
labels: {{ merged_prometheus_labels|to_json }}
|
labels: {{ merged_prometheus_labels|combine(prometheus_agent.agents.proxy.mappings[j].labels|d({}))|to_json }}
|
||||||
tls_config:
|
tls_config:
|
||||||
ca_file: /etc/prometheus/targetcerts/{{ inventory_hostname }}.crt
|
ca_file: /etc/prometheus/targetcerts/{{ inventory_hostname }}.crt
|
||||||
cert_file: /etc/ssl/prometheus_scraper.crt
|
cert_file: /etc/ssl/prometheus_scraper.crt
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue