Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lustre2: don't fail plugin if can't read brw_stats
Before this commit, the plugin entirely fails when run as anyone other than root, because brw_stats files are symlinks to /sys/kernel/debug/. Which was causing errors like this: ``` 2024-03-22T02:40:40Z E! [inputs.lustre2] Error in plugin: failed to read file /proc/fs/lustre/osd-ldiskfs/MGS/brw_stats: open /proc/fs/lustre/osd-ldiskfs/MGS/brw_stats: permission denied ``` After this change, the plugin continues to run and gather whatever metrics it can, even if brw_stats files are unreadable.
- Loading branch information