Add the node_exporter role
This commit is contained in:
12
roles/node_exporter/templates/node_exporter.service.j2
Normal file
12
roles/node_exporter/templates/node_exporter.service.j2
Normal file
@@ -0,0 +1,12 @@
|
||||
[Unit]
|
||||
Description=Node Exporter
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart={{ node_exporter_bin_path }}/node_exporter \
|
||||
--collector.filesystem.mount-points-exclude=^/(sys|proc|dev|host|etc)($$|/) \
|
||||
--collector.systemd
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user