influxdata / influxdata/telegraf
Lustre2 plugin proc/sys path names changed
- Dominant language
- Go
- Stars
- 17.8k
- Forks
- 5.8k
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 161
Description
### Relevant telegraf.conf
```toml
[[inputs.lustre2]]
## An array of /proc globs to search for Lustre stats
## If not specified, the default will work on Lustre 2.12.x
##
# mgs_procfiles = [
# "/sys/fs/lustre/mgs/*/eviction_count",
# ]
# ost_procfiles = [
# "/proc/fs/lustre/obdfilter/*/stats",
# "/proc/fs/lustre/osd-ldiskfs/*/stats",
# "/proc/fs/lustre/obdfilter/*/job_stats",
# "/proc/fs/lustre/obdfilter/*/exports/*/stats",
# "/proc/fs/lustre/osd-ldiskfs/*/brw_stats",
# "/proc/fs/lustre/osd-zfs/*/brw_stats",
# "/sys/fs/lustre/odbfilter/*/eviction_count",
# ]
# mds_procfiles = [
# "/proc/fs/lustre/mdt/*/md_stats",
# "/proc/fs/lustre/mdt/*/job_stats",
# "/proc/fs/lustre/mdt/*/exports/*/stats",
# "/proc/fs/lustre/osd-ldiskfs/*/brw_stats",
# "/proc/fs/lustre/osd-zfs/*/brw_stats",
# "/sys/fs/lustre/mdt/*/eviction_count",
# ]
```
### Logs from Telegraf
```text
Nothing interesting here, because missing files get ignored
```
### System info
Telegraf 1.39.3, Rocky 9.8, Lustre 2.17.0
### Docker
Lustre changed the paths for the ost_procfiles and mdt_procfiles (again), so the defaults of the plugin don't work anymore.
Changes as of Lustre (2.17.0):
```
/proc/fs/lustre/mdt/*/exports/*/stats -> /sys/kernel/debug/lustre/mdt/*/exports/*/stats
/proc/fs/lustre/obdfilter/*/exports/*/stats -> /sys/kernel/debug/lustre/obdfilter/*/exports
/proc/fs/lustre/obdfilter/*/stats -> /sys/kernel/debug/lustre/osd-zfs/*/stats
/proc/fs/lustre/osd-ldiskfs/*/brw_stats -> /sys/kernel/debug/lustre/osd-ldiskfs/*/brw_stats
/proc/fs/lustre/osd-ldiskfs/*/stats -> /sys/kernel/debug/lustre/osd-ldiskfs/*/stats
/proc/fs/lustre/osd-zfs/*/brw_stats -> /sys/kernel/debug/lustre/osd-zfs/*/brw_stats
```
### Steps to reproduce
1. Run the lustre2 plugin with default settings
### Expected behavior
All metrics mentioned in the plugin documentation are collected.
### Actual behavior
The metrics from the renamed files are missing.
### Additional info
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.