1
0
forked from HPC/HPCplaybooks

Added a node_exporter role initially built for...

peregrine.
This commit is contained in:
Egon Rijpkema
2018-02-12 16:34:16 +01:00
parent e6cb2834c0
commit 2ec22760af
8 changed files with 119 additions and 0 deletions

View File

@ -0,0 +1,16 @@
[Unit]
Description=prometheus node exporter
[Service]
TimeoutStartSec=0
Restart=always
ExecStart=/usr/local/prometheus/node_exporter \
--collector.filesystem.ignored-mount-points "^/(sys|proc|dev|host|etc)($|/)" \
{% if 'login' in role_names %}
--collector.filesystem.ignored-fs-types="^(sys|proc|auto|cgroup|devpts|ns|au|fuse\.lxc|mqueue|overlay)(fs|)$$"
{% else %}
--collector.filesystem.ignored-fs-types="^(sys|proc|auto|cgroup|devpts|ns|au|fuse\.lxc|mqueue|overlay|lustre)(fs|)$$"
{% endif %}
[Install]
WantedBy=multi-user.target