fixed jobs without labels
This commit is contained in:
parent
d352baab14
commit
9e38ba7d64
1 changed files with 1 additions and 1 deletions
|
|
@ -34,7 +34,7 @@
|
||||||
{% for t in job.targets %}
|
{% for t in job.targets %}
|
||||||
- {{ t }}
|
- {{ t }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
labels: {{ merged_prometheus_labels|combine(job.labels)|to_json }}
|
labels: {{ merged_prometheus_labels|combine(job.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