-
Notifications
You must be signed in to change notification settings - Fork 812
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dd.collector[1724]: WARNING (disk.py:109): Unable to get disk metrics for ... #2932
Comments
same issue here |
I'm having this issue, too, though it's just a lot of extra log messages; as far as I can see nothing is being reported incorrectly. I'm using docker on all my servers, and sometime between docker 1.11.2 and 1.12.1 it started attaching every aufs container as a mount, so that there are many repeated "none" and "shm" filesystems in the output of On Ubuntu 16.04 I see this with docker 1.12.1, but not with docker 1.11.2. It also appears that downgrading datadog-agent to 1:5.8.5-1 silences these errors, but I think that's because this was previously a debug log, and now is a warning.
|
Hey there! @ne0ark and @wesseljt, I guess you actually want the metrics from the svfs storage. We use https://docs.python.org/2/library/os.html#os.statvfs to get those metrics, and it is failing with the |
@degemer Hi! Yes, it's exactly the error you quote, and log inflation is indeed the only problem I have with it, now that I understand what's going on. |
Hum, the easy solution would be to switch back to debug level (since most of the time it's only noise), but as this issue shows, this warning is sometimes useful. |
That worked perfectly, @degemer ! Thanks. :) |
Hello, I am using version
Previously I also received similiar errors for What can I do to remove these warnings? |
On Ubuntu 16.04, I'm getting this log
with this configuration
|
I am getting this:
I am using version 5.11.2 even /var/named/chroot/ excluded with
|
my loggly logs (you pay for amount of logs there!) heavily spammed by dd-agent:
is there any way to disable this warnings? version of datadog:
|
Sorry for the trouble, we're considering silencing this warning on Docker (since it seems to be the main issue there). Could you confirm you're running the agent using our Docker image ? In the meantime, you can try the DISK='/my/mountpoint' /opt/datadog-agent/embedded/bin/python -c 'import psutil; import os; print [part.fstype for part in psutil.disk_partitions(all=True) if part.mountpoint == os.environ["DISK"]][0]' It should print the detected filesystem. Could you give it a try @rindek @andreysaksonov ? @paulrm @geowa4 you can try either the Let us know if this helps you! |
I have been unable to make any of these suggestion work. I have 3 secure-NFS mounts which are spamming my /var/log/messages with errors, e.g. every server has local mount /install = nas:/exports/install-files. I have tried all the following:
Are these settings dependent on the 'use_mount' yes/no setting? |
I'm running a bare metal Ubuntu 16.04 (LTS) server. I'm getting lots of these messages as well:
@degemer, when I run your python script, it reports the filesystem as Doing the filesystem exclusion in
|
We get the error:
Running on a centos7 based image
|
Is there a general solution for either fixing or silencing this? I am receiving a similar version of this warning as @andreysaksonov is/was:
I am not running the docker container version of dd-agent.
|
I have managed to fix that perm denied errors by adding a /etc/dd-agent/conf.d/disk.yml with the contents:
If any similiar error shows up I simply add that to the list. The list of filesystems I found using "mount" command and see which type of FS is mounted and which DD is unable to fetch |
For "/sys/kernel/debug/tracing": Example if you have have copied disk.yaml.default to be disk.yaml
|
FYI There was no error or logging to indicate that the .yaml was being rejected for formatting. |
@sdsalsero ya, yaml is super picky on white space. |
@sdsalsero If you are on a system with systemD you can run and the log output will give a parse error. systemctl status datadog-agent
|
@degemer , process.yaml contains errors: Checksprocess
|
@andreysaksonov please help |
I created a repo with the necessary changes to suppress these warnings since none of these solutions worked for me and I have it working on my Docker boxes. Is there any interest in this? I can open a PR if there is. |
Ran into this today with Docker CE on Ubuntu 16.04, and realised |
On a somewhat pretty related topic... Would anyone happen to have more information on how to get these to be excluded/ignored?
Putting It would also seem that ps. This is running datadog-agent 5.14.1. |
Otherwise, possibly as a workaround, is there a way for |
Well, for the record, seems like adding Solution found via https://blog.bgbgbg.net/archives/4243.
|
I've tried every option here and I still get the error message. Has anyone had any luck with overlay2 ?
|
I am getting syslog spammed with "Got automount request for /proc/sys/fs/binfmt_misc" on Ubuntu 18.04, running the dd-agent as a container via the "easy one step install" at https://app.datadoghq.com/account/settings#agent/docker Do I need to install from Github source in order to ignore that filesystem? |
Here's my disk.yaml to ignore those filesystems:
|
Disabled the log from datadog completely: In your datadog.yaml: |
Using the Docker image, I ended up turning |
Hello, also facing this issue. Is there any eta to fix this? |
On Datadog 6, I've had success with
|
Ok so this worked for me to filter out A LOT of noise which is great. I was still seeing the two messages below; (pkg/collector/py/datadog_agent.go:148 in LogMessage) | (disk.py:114) | Unable to get disk metrics for /sys/kernel/debug/tracing: [Errno 13] Permission denied: '/sys/kernel/debug/tracing' pkg/collector/py/datadog_agent.go:148 in LogMessage) | (disk.py:114) | Unable to get disk metrics for /run/user/1000/gvfs: [Errno 13] Permission denied: '/run/user/1000/gvfs' so i added 2 extra lines to disk.d/conf.yaml so it looks like this; init_config: null
and they are all gone. |
I have followed most recommendations found in this issue but I still get flooded by the WARN message:
My configuration looks like this: instances:
- url: "unix://var/run/docker.sock"
use_mount: false
new_tag_names: true
mount_point_blacklist:
- /var/lib/docker/(containers|overlay2)/./(shm|merged)
- /run/docker/netns/*
- /sys/kernel/debug/
- /run/user/1000/
excluded_filesystems:
- tmpfs
- none
- shm
- nsfs
- netns
- binfmt_misc
- autofs
excluded_mountpoint_re: (/var/lib/docker/.*|/run/docker/netns/.*) I know some settings might be redundant but I hopelessly tried every option ... |
@pierot Your
|
@jschaf Thanks for looking into this. I altered my config but the warnings keep showing up ... |
@pierot Are you running Datadog Agent v5 or v6? Have you had a chance to open a support ticket? |
@irabinovitch I am running v6 of the Datadog Agent. I'll open a support ticket and link to this issue. |
I found this config is working :
|
@irabinovitch I had intensive contact with support. They were very helpful and got the ticket resolved. This is my config now: datadog_checks:
disk:
init_config:
instances:
- use_mount: false
file_system_blacklist:
- tmpfs
- none
- shm
- nsfs
- netns
- binfmt_misc
- autofs
mount_point_blacklist:
- /var/lib/docker/(containers|overlay2)/
- /run/docker/
- /sys/kernel/debug/
- /run/user/1000/
docker:
init_config:
instances:
- url: "unix://var/run/docker.sock" So, the |
I can confirm that @pierot patch is valid, mainly I needed This bug is 3 years old and I do not see even one PR referencing it. I do not find acceptable to have to add a blacklist like One of the key datadog selling points was that it just works and that it saves you endless number of hours configuring probes. I can understand that some items may require debates regarding if they should or not be in the default blacklist, but |
Sadly the blacklist configuration does not seem to work for me here. I have v7 of the Agent (on a Ubuntu host), use the following configuration in init_config:
instances:
## @param use_mount - boolean - required
## Instruct the check to collect using mount points instead of volumes.
#
- use_mount: false
file_system_blacklist:
- tmpfs
- none
- shm
- nsfs
- netns
- binfmt_misc
- autofs
mount_point_blacklist:
- /var/lib/docker/(containers|overlay2)/
- /run/docker/
- /sys/kernel/debug/
- /run/user/1000/ Using this I still get a lot of useless log messages like this:
|
@rosario-raulin |
I was able to exclude those logs by adding into /etc/datadog-agent/conf.d/disk.d/conf.yaml.default. At first I tried to create a file conf.yaml from the default and editing there but that didn't work. What I did:
|
Hi all, the next minor version of the Agent (7.23) will include a new option on the disk check ( If I am closing this issue, please raise any further issues on the integrations-core repo. |
I think what's so confusing here is what @squillace91 said. Just adding a |
I guess my configuration should work as expected (from
However, I was still getting something like:
It seems to be a warning from |
@outloudvi you are in the repository for the v5 dd-agent. the issue you are running into is on v6/v7 datadog-agent package, which is a different repo. I had to dig pretty deep but I found the bug in the Go code is the result of a bad type cast when unmarshalling the config. I submitted a fix here
fyi the check in disk_nix.go is here, which calls out to here, and the |
Got it. Thanks for your info and PR, @tristanpemble! |
@outloudvi as an interim work-around, I found the |
When I mount anobject storage using: https://github.com/ovh/svfs
I get following error: dd.collector[1724]: WARNING (disk.py:109): Unable to get disk metrics for /root/gra1: [Errno 13] Permission denied: '/root/gra1'
The text was updated successfully, but these errors were encountered: