1
1
mirror of https://gitlab.archlinux.org/archlinux/infrastructure.git synced 2025-01-18 08:06:16 +01:00
infrastructure/roles/prometheus_exporters/files/sudoers
Jelle van der Waa 8ea35153b6
Add a btrfs prometheus exporter
Collect prometheus btrfs errors from the btrfs command from btrfs-progs
which since 5.10 supports json output for device stats. The collected
errors will in the future trigger an alert when the errors reach a
certain treshold.
2021-01-26 23:01:28 +01:00

3 lines
195 B
Plaintext

Cmnd_Alias EXPORTER = /usr/bin/btrfs --format json device stats /, /usr/bin/btrfs --format json device stats /[a-zA-Z]*, /usr/bin/btrfs filesystem show
node_exporter ALL=(ALL) NOPASSWD: EXPORTER