added support to overwrite scrap intervall
This commit is contained in:
parent
c009ac013b
commit
246842b66e
3 changed files with 6 additions and 1 deletions
|
|
@ -1,5 +1,8 @@
|
|||
- job_name: prometheus-agent {{ inventory_hostname }}
|
||||
scheme: https
|
||||
{% for i in ['scrape_timeout', 'scrape_interval'] if prometheus_agent[i] %}
|
||||
{{ i }}: {{ prometheus_agent[i] }}
|
||||
{% endfor %}
|
||||
static_configs:
|
||||
- targets:
|
||||
- {{ inventory_hostname }}:{{ prometheus_agent.scrapers[item] }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue