promtail: Support metrics scraping
This commit is contained in:
parent
5045dc7fde
commit
1daf64a848
3 changed files with 37 additions and 1 deletions
|
|
@ -52,6 +52,19 @@ verifyPeer = yes
|
|||
CAfile = /etc/ssl/scraper_{{ i }}.crt
|
||||
{% endfor %}
|
||||
|
||||
{% for i in prometheus_agent.scrapers if "promtail" in prometheus_agent.scrapers[i] and prometheus_agent.agents.promtail.enable %}
|
||||
; promtail
|
||||
[scraper {{ i }} promtail]
|
||||
client = no
|
||||
requireCert = yes
|
||||
accept = :::{{ prometheus_agent.scrapers[i].promtail }}
|
||||
connect = {{ prometheus_agent.agents.promtail.config.server.http_listen_address|replace('[', '')|replace(']', '') }}:{{ prometheus_agent.agents.promtail.config.server.http_listen_port }}
|
||||
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