1
0
Fork 0
mirror of https://gitlab.com/s3lph/ansible-collection-prometheus synced 2024-11-22 17:51:01 +01:00

Fix collectors cronjob paths

This commit is contained in:
s3lph 2021-11-03 11:51:59 +01:00
parent 0b7dc9e3e5
commit 6ca34192fe

View file

@ -2,6 +2,6 @@
{% for name, job in collectors.items() %}
# {{ name }}
{{ job.cronexpr }} {{ prometheus_node_crontab_system_user | default('') }} /bin/sh -c "/usr/local/bin/{{ job.template_base_name | default('prometheus-node-exporter-' + name + '.sh') }}" | sponge /var/lib/prometheus/node-exporter/{{ name }}.prom
{{ job.cronexpr }} {{ prometheus_node_crontab_system_user | default('') }} /bin/sh -c "/usr/local/bin/{{ job.template_base_name | default('prometheus-node-exporter-' + name + '.sh') }} | sponge {{ prometheus_node_textfile_dir }}/{{ name }}.prom"
{% endfor %}