telegraf: Centos Stream 9: error getting disk usage ("/sys/kernel/debug/tracing"): permission denied
Relevant telegraf.conf
Migrating from Centos 7 to Centos Stream 9, and I am seeing this log when Telegraf runs:
Mar 25 23:09:00 nxtdrp032522-d-centos-stream9 telegraf[927]: 2022-03-25T23:09:00Z E! [inputs.disk] [SystemPS] => error getting disk usage ("/sys/kernel/debug/tracing"): permission denied
Any guidance please?
Logs from Telegraf
Mar 25 23:09:00 nxtdrp032522-d-centos-stream9 telegraf[927]: 2022-03-25T23:09:00Z E! [inputs.disk] [SystemPS] => error getting disk usage ("/sys/kernel/debug/tracing"): permission denied
System info
telegraf-1.22.0-1.x86_64
Docker
No response
Steps to reproduce
1.start telegraf and look in /var/log/messages 2. 3. …
Expected behavior
no permission denied logs
Actual behavior
permission denied logs
Additional info
No response
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 15 (7 by maintainers)
Commits related to this issue
- fix: add tracefs to ignore, reduce log level The tracefs filesystem is showing up more and is not likely something a user wishes to have enabled by default. This adds it to the ignore in the config b... — committed to powersj/telegraf by powersj 2 years ago
- fix: add tracefs to ignore, reduce log level The tracefs filesystem is showing up more and is not likely something a user wishes to have enabled by default. This adds it to the ignore in the config b... — committed to powersj/telegraf by powersj 2 years ago
Same problem with telegraf 1.22.0-1 on clean Debian 11
E! [inputs.disk] [SystemPS] => error getting disk usage ("/run/docker/netns/ca3833961fae"): permission deniedUPD. Adding
nsfstoignore_fslist solved my problem.added
tracefs toignore_fs` parameter for inputs.disk and seems quiet so far.In addition to adding the filesystem type to the ignore list, v1.22.3 of telegraf, released yesterday, has reduced these log messages back to debug level.
Same here on Ubuntu 20.04.4 using
Telegraf 1.22.0 (git: HEAD 80a7feb8)uname -a:Linux 5.4.0-104-generic #118-Ubuntu SMP Wed Mar 2 19:02:41 UTC 2022 x86_64 x86_64 x86_64 GNU/Linuxtelegraf output:
E! [inputs.disk] [SystemPS] => error getting disk usage ("/hostfs/run/docker/netns/XXXXXXXXXX"): permission deniedRefers to: https://access.redhat.com/solutions/5914171
Try this:
[[inputs.disk]] ignore_fs = [“tmpfs”, “devtmpfs”, “devfs”, “iso9660”, “overlay”, “aufs”, “squashfs”, “tracefs”]