diff options
Diffstat (limited to 'roles/monitoring/prometheus/exporter/chrony/templates')
-rw-r--r-- | roles/monitoring/prometheus/exporter/chrony/templates/service.j2 | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/roles/monitoring/prometheus/exporter/chrony/templates/service.j2 b/roles/monitoring/prometheus/exporter/chrony/templates/service.j2 index cb806649..74d8ad0a 100644 --- a/roles/monitoring/prometheus/exporter/chrony/templates/service.j2 +++ b/roles/monitoring/prometheus/exporter/chrony/templates/service.j2 @@ -1,10 +1,11 @@ [Unit] Description=Prometheus chrony exporter +After=chrony.service [Service] Restart=always User=_chrony -ExecStart=/usr/bin/prometheus-chrony-exporter --web.listen-address="127.0.0.1:9123" --chrony.address=unix:///run/chrony/chronyd.sock {% for collector in prometheus_exporter_chrony_enable_collectors %} --collector.{{ collector }}{% endfor %}{{ '' }} +ExecStart=/usr/bin/prometheus-chrony-exporter --web.listen-address="127.0.0.1:9123" --chrony.address=unix:///run/chrony/chronyd.sock {% for collector in prometheus_exporter_chrony_enable_collectors %} --collector.{{ collector }}{% endfor %}{% if prometheus_exporter_chrony_disable_dns_lookups %} --no-collector.dns-lookups{% endif %}{{ '' }} # systemd hardening-options AmbientCapabilities= |