added support for the blackbox exporter
This commit is contained in:
parent
7997ebfb59
commit
f772558e31
6 changed files with 113 additions and 7 deletions
|
|
@ -1,6 +1,6 @@
|
|||
sslVersionMin = TLSv1.2
|
||||
|
||||
{% for i in prometheus_agent.scrapers if "nodeexporter" in prometheus_agent.scrapers[i]%}
|
||||
{% for i in prometheus_agent.scrapers if "nodeexporter" in prometheus_agent.scrapers[i] %}
|
||||
; nodeexporter
|
||||
[scraper {{ i }} nodeexporter]
|
||||
client = no
|
||||
|
|
@ -13,6 +13,19 @@ verifyPeer = yes
|
|||
CAfile = /etc/ssl/scraper_{{ i }}.crt
|
||||
{% endfor %}
|
||||
|
||||
{% for i in prometheus_agent.scrapers if "blackbox" in prometheus_agent.scrapers[i] and prometheus_agent.agents.blackbox.enable%}
|
||||
; blackbox
|
||||
[scraper {{ i }} blackbox]
|
||||
client = no
|
||||
requireCert = yes
|
||||
accept = {{ prometheus_agent.scrapers[i].blackbox }}
|
||||
connect = {{ prometheus_agent.agents.blackbox.args['web.listen-address']|replace('[', '')|replace(']', '') }}
|
||||
cert = /etc/ssl/prometheus_agent.crt
|
||||
key = /etc/ssl/private/prometheus_agent.key
|
||||
verifyPeer = yes
|
||||
CAfile = /etc/ssl/scraper_{{ i }}.crt
|
||||
{% endfor %}
|
||||
|
||||
; proxy
|
||||
{% for i in prometheus_agent.scrapers if "proxy" in prometheus_agent.scrapers[i] %}
|
||||
{% for j in prometheus_agent.scrapers[i].proxy|d({}) %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue