mirror of
https://gitlab.archlinux.org/archlinux/infrastructure.git
synced 2026-09-11 10:20:30 +02:00
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>