add support for custom scraper times for procxied exporters

This commit is contained in:
nd 2020-12-24 15:56:46 +01:00
parent 72997385cd
commit a8a82ea08b
No known key found for this signature in database
GPG key ID: 21B5CD4DEE3670E9

View file

@ -58,8 +58,8 @@
{% for j in prometheus_agent.scrapers[item].proxy|d({}) %} {% for j in prometheus_agent.scrapers[item].proxy|d({}) %}
- job_name: "prometheus-agent - proxy - {{ j }} : {{ inventory_hostname }}" - job_name: "prometheus-agent - proxy - {{ j }} : {{ inventory_hostname }}"
scheme: https scheme: https
{% for i in ['scrape_timeout', 'scrape_interval'] if 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[i] }} {{ i }}: {{ prometheus_agent.agents.proxy.mappings[j].get(i, prometheus_agent[i]) }}
{% endfor %} {% endfor %}
static_configs: static_configs:
- targets: - targets: