initial ansible code
This commit is contained in:
16
roles/node_exporter/templates/node_exporter.service.j2
Normal file
16
roles/node_exporter/templates/node_exporter.service.j2
Normal file
@@ -0,0 +1,16 @@
|
||||
## Managed by Ansible ##
|
||||
|
||||
[Unit]
|
||||
Description=Prometheus Node Exporter
|
||||
After=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User={{ node_exporter_system_user }}
|
||||
Group={{ node_exporter_system_group }}
|
||||
ExecStart={{ node_exporter_install_dir }}/node_exporter --collector.filesystem.ignored-mount-points=^/(sys|proc|dev|run)($|/)
|
||||
Restart=always
|
||||
RestartSec=1
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user