DataDog / datadog-agent

Main repository for Datadog Agent
https://docs.datadoghq.com/
Apache License 2.0
2.84k stars 1.19k forks source link

pkg/collector/corechecks/system/disk/disk_nix.go spam in newer version of agents #12676

Open kvitaly2005 opened 2 years ago

kvitaly2005 commented 2 years ago

Output of the info page (if this is a bug)

EDT | CORE | WARN | (pkg/collector/corechecks/system/disk/disk_nix.go:68 in collectPartitionMetrics) | Unable to get disk metrics of /run/docker/netns/[id] mount point: permission denied

Describe what happened: After upgrade to 7.32.4 logs are filled with spam from disk_nix.go messages hundreds of the same every minute

Describe what you expected: I expect logs to be clear as in version 6.18 Adding following blacklists configuration does not help:

/etc/datadog-agent/conf.d/disk.d/conf.yaml init_config: instances:

Steps to reproduce the issue: Install 7.32.4 on Linux with Docker daemon running.

Additional environment details (Operating System, Cloud provider, etc): Debian Linux / Docker

bkabrda commented 2 years ago

Hi 👋 thanks for opening the issue. The log line you provided seems to suggest that you're using datadog-iot-agent instead of datadog-agent (the simplified Go version of the check is running instead of the full Python version). Is this correct and intentional?

In between 6.18 and 7.32 we renamed the *_blacklist arguments to *_exclude, so the configuration value you're using will not work in 7.32.4. Now, the way to fix this is slightly different for Python and Go versions of the check.

Let me know if this helps.

tristanpemble commented 1 year ago

the config values excluded_filesystems and excluded_disks are simply not being parsed, I submitted a fix in #13954