mirror of
https://gitlab.archlinux.org/archlinux/infrastructure.git
synced 2025-01-18 08:06:16 +01:00
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.
3 lines
195 B
Plaintext
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
|