Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions backoffice.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@
name: prometheus
state: reloaded

- name: prometheus-node-exporter is restarted
service:
name: prometheus-node-exporter
state: restarted

- name: promtail is restarted
service:
name: promtail
Expand Down
13 changes: 13 additions & 0 deletions tasks/prometheus.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,19 @@
notify:
- prometheus is reloaded

- name: prometheus-node-exporter invocation is configured
replace:
path: /etc/default/prometheus-node-exporter
regexp: '(?ms)^ARGS=".+?"$'
replace: |-
ARGS="--collector.diskstats.ignored-devices=^(ram|loop|fd|(h|s|v|xv)d[a-z]|nvme\\d+n\\d+p)\\d+$ \
--collector.filesystem.ignored-mount-points=^/(sys|proc|dev|run)($|/) \
--collector.netdev.ignored-devices=^lo$ \
--collector.textfile.directory=/var/lib/prometheus/node-exporter \
--collector.systemd"
notify:
- prometheus-node-exporter is restarted

- name: prometheus-textfile group exists
group:
name: prometheus-textfile
Expand Down