added support to overwrite scrap intervall

This commit is contained in:
nd 2020-05-23 23:08:06 +02:00
parent c009ac013b
commit 246842b66e
No known key found for this signature in database
GPG key ID: 21B5CD4DEE3670E9
3 changed files with 6 additions and 1 deletions

View file

@ -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] }}