Files
Leonidas SpyropoulosandSven-Hendrik Haase 4ce520a602 fix(prometheus): use node-exporter built-in btrfs collector
The node_exporter account is created with u! in sysusers.d (since
prometheus-node-exporter packaging change in commit https://gitlab.archlinux.org/archlinux/packaging/packages/prometheus-node-exporter/-/commit/628195b5d5f911192a7fff6563046c32f346f473), which
sets account expiry to epoch day 1, breaking sudo for the custom
btrfs textcollector.

Switch to node-exporter's built-in btrfs collector which reads from
/sys/fs/btrfs without requiring sudo. Remove the custom script,
sudoers rule, and service/timer. Update Prometheus alert rules to
use the new node_btrfs_device_errors_total metric. Also removes a
duplicate btrfs_corruption_errs alert.

Fixes: https://gitlab.archlinux.org/archlinux/infrastructure/-/work_items/701

Signed-off-by: Leonidas Spyropoulos <artafinde@archlinux.org>
2026-04-23 13:16:53 +02:00
..