vectordotdev / vector

A high-performance observability data pipeline.
https://vector.dev
Mozilla Public License 2.0
18.13k stars 1.6k forks source link

host_metrics: update default configuration #8384

Open spencergilbert opened 3 years ago

spencergilbert commented 3 years ago
level=info ts=2021-07-20T14:04:36.113Z caller=filesystem_common.go:110 collector=filesystem msg="Parsed flag --collector.filesystem.mount-points-exclude" flag=^/(dev|proc|sys|var/lib/docker/.+)($|/)
level=info ts=2021-07-20T14:04:36.114Z caller=filesystem_common.go:112 collector=filesystem msg="Parsed flag --collector.filesystem.fs-types-exclude" flag=^(autofs|binfmt_misc|bpf|cgroup2?|configfs|debugfs|devpts|devtmpfs|fusectl|hugetlbfs|iso9660|mqueue|nsfs|overlay|proc|procfs|pstore|rpc_pipefs|securityfs|selinuxfs|squashfs|sysfs|tracefs)$

These look to be the defaults (when starting in a docker container)

Originally posted by @spencergilbert in https://github.com/timberio/vector/issues/8317#issuecomment-883421893

As noted, there are a number of defaults we could investigate setting to provide a more hands-free setup for host metrics, or at least one with fewer surprises

mperham commented 3 weeks ago

FYI I'm installing Vector on Ubuntu 24.04 and using podman. Containers are in /var/lib/containers and Vector repeatedly throws an error when scanning mountpoints because that directory is root/700. Looks like mount-points-exclude could be updated to fix that.

/dev/vda1 on /var/lib/containers/storage/overlay type ext4 (rw,relatime,discard,errors=remount-ro,commit=30)