add basic auth support
This commit is contained in:
parent
17c1bb0ffb
commit
17f40221b6
1 changed files with 2 additions and 2 deletions
|
|
@ -58,8 +58,8 @@
|
|||
{% for j in prometheus_agent.scrapers[item].proxy|d({}) %}
|
||||
- job_name: "prometheus-agent - proxy - {{ j }} : {{ inventory_hostname }}"
|
||||
scheme: https
|
||||
{% for i in ['scrape_timeout', 'scrape_interval', 'metrics_path'] if prometheus_agent[i] or i in prometheus_agent.agents.proxy.mappings[j] %}
|
||||
{{ i }}: {{ prometheus_agent.agents.proxy.mappings[j].get(i, prometheus_agent[i]) }}
|
||||
{% for i in ['scrape_timeout', 'scrape_interval', 'metrics_path', 'basic_auth'] if (i in prometheus_agent and prometheus_agent[i]) or (i in prometheus_agent.agents.proxy.mappings[j]) %}
|
||||
{{ i }}: {{ prometheus_agent.agents.proxy.mappings[j].get(i, prometheus_agent[i])|to_json }}
|
||||
{% endfor %}
|
||||
params:
|
||||
{% for i in prometheus_agent.agents.proxy.mappings[j].params|d({}) %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue