Depend on wg0 for node exporter

This commit is contained in:
Simon Bruder 2019-10-19 13:27:27 +00:00
parent e5d27bbeb0
commit 4ca3a20d18
No known key found for this signature in database
GPG key ID: 6F03E0000CC5B62F
2 changed files with 7 additions and 0 deletions

View file

@ -0,0 +1,2 @@
[Unit]
After=wg-quick@wg0.service

View file

@ -10,3 +10,8 @@
regexp: '^ARGS=' regexp: '^ARGS='
line: ARGS="--web.listen-address=10.80.0.2:9100" line: ARGS="--web.listen-address=10.80.0.2:9100"
notify: restart-node-exporter notify: restart-node-exporter
- name: depend on wg0 for node exporter
copy:
dest: /etc/systemd/system/prometheus-node-exporter.service.d/override.conf
src: prometheus-node-exporter.service-override.conf