How do you pass file_system_blacklist arg to Datadog Docker Agent run command?

Viewed 1672

I want to exclude a path to avoid getting my logs spammed like so:

 (disk.py:75) | Unable to get disk metrics for /host/proc/sys/fs/binfmt_misc:
  [Errno 40] Too many levels of symbolic links: 
    '/host/proc/sys/fs/binfmt_misc'\n","stream":"stdout","time":"2020-03-12T23:01:38.424330408Z"}

I'm running datadog as a docker agent using the command here: https://docs.datadoghq.com/agent/docker/?tab=standard#installation

how do I specify files to exclude in the docker run command? is it an environment variable?

2 Answers

If you want to remove the warning, you can try adding none and shm to the excluded_filesystems in disk.yaml. This file should exist or be created in the Agent's conf.d directory.

Otherwise, you'll find more options here.

If you are looking to exclude the logs from the agent within the platform you can look at excluding the agent (doc)

Related