fixed nodes without blackbox exporter
This commit is contained in:
parent
3e2b2dd451
commit
d352baab14
1 changed files with 1 additions and 1 deletions
|
|
@ -18,7 +18,7 @@
|
|||
- replacement: 'node'
|
||||
target_label: job
|
||||
|
||||
{% if prometheus_agent.scrapers[item].blackbox and prometheus_agent.agents.blackbox.enable %}
|
||||
{% if prometheus_agent.scrapers[item].blackbox|d(False) and prometheus_agent.agents.blackbox.enable %}
|
||||
{% for j in prometheus_agent.agents.blackbox.jobs %}
|
||||
{% set job=prometheus_agent.agents.blackbox.jobs[j] %}
|
||||
- job_name: "prometheus-agent - blackbox - {{ j }} : {{ inventory_hostname }}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue