add snmp exporter from fabbs
This commit is contained in:
parent
3391c2b8a2
commit
51346d08b7
5 changed files with 122 additions and 0 deletions
|
|
@ -39,6 +39,19 @@ verifyPeer = yes
|
|||
CAfile = /etc/ssl/scraper_{{ i }}.crt
|
||||
{% endfor %}
|
||||
|
||||
{% for i in prometheus_agent.scrapers if "snmp" in prometheus_agent.scrapers[i] and prometheus_agent.agents.snmp.enable %}
|
||||
; snmp
|
||||
[scraper {{ i }} snmp]
|
||||
client = no
|
||||
requireCert = yes
|
||||
accept = :::{{ prometheus_agent.scrapers[i].snmp }}
|
||||
connect = {{ prometheus_agent.agents.snmp.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