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

@ -2,7 +2,7 @@
# Due to shell scaping, to pass backslashes for regexes, you need to double
# them (\\d for \d). If running under systemd, you need to double them again
# (\\\\d to mean \d), and escape newlines too.
ARGS="{% for i in prometheus_agent.args %} --{{ i }}{% if prometheus_agent.args[i] and prometheus_agent.args[i] != {} %}='{{ prometheus_agent.args[i] }}'{% endif %} {% endfor %}"
ARGS="{% for i in prometheus_agent.args %} --{{ i }}{% if prometheus_agent.args[i] and prometheus_agent.args[i] != {} %}={{ prometheus_agent.args[i] }}{% endif %} {% endfor %}"
#{{ prometheus_agent.args.keys()|list|join(' ') }}"