Initial commit
This commit is contained in:
commit
e42f1f6b9a
7 changed files with 252 additions and 0 deletions
14
templates/stunnel-client.conf.j2
Normal file
14
templates/stunnel-client.conf.j2
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
sslVersionMin = TLSv1.2
|
||||
|
||||
{% for i in prometheus_agent.scrapers %}
|
||||
[scraper {{ i }}]
|
||||
client = no
|
||||
requireCert = yes
|
||||
accept = {{ prometheus_agent.scrapers[i] }}
|
||||
connect = {{ prometheus_agent.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 %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue