beats
beats copied to clipboard
Metricbeat 7.17.7+ stopped reporting filesystem usage
We upgraded from metricbeat 7.17.5 to 7.17.9 and filesystem usage stopped getting reported.
It was logging an error:
error getting filesystem usage for /hostfs/run/docker/netns/default: error in Statfs syscall: permission denied
This commit made any filesystem not reporting usage an error and aborts reporting all the filesystem usage. https://github.com/elastic/beats/commit/296b380da0df0c41cc1497646a64b2d20bf79f64#diff-1d4a29b732705abccd5f7e4f009db29164437bf1e41e9947e559d3ed6d759329R92
This has been fixed in 8.5+ https://github.com/elastic/beats/pull/33646, but bug still exists on 7.17. Since this refactor was backported to 7.17, can we backport the bugfix as well?
I think I found a workaround by setting filesystem.ignore_types to
filesystem.ignore_types: [nsfs, sysfs, tmpfs, bdev, proc, cgroup, cgroup2, cpuset, devtmpfs, configfs, debugfs, tracefs, securityfs, sockfs, bpf, pipefs, ramfs, hugetlbfs, devpts, ecryptfs, fuse, fusectl, mqueue, pstore, autofs, overlay, aufs]
(nsfs was the problematic one)
This issue doesn't have a Team:<team> label.
Hi! We just realized that we haven't looked into this issue in a while. We're sorry!
We're labeling this issue as Stale to make it hit our filters and make sure we get back to it as soon as possible. In the meantime, it'd be extremely helpful if you could take a look at it as well and confirm its relevance. A simple comment with a nice emoji will be enough :+1.
Thank you for your contribution!