Files
Ansible/roles/node_exporter/templates/node_exporter.service.j2
2022-10-09 21:41:56 +00:00

16 lines
388 B
Django/Jinja

## 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