add support for custom scraper times for procxied exporters
This commit is contained in:
parent
72997385cd
commit
a8a82ea08b
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'] if prometheus_agent[i] %}
|
||||
{{ i }}: {{ prometheus_agent[i] }}
|
||||
{% for i in ['scrape_timeout', 'scrape_interval'] 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]) }}
|
||||
{% endfor %}
|
||||
static_configs:
|
||||
- targets:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue