-
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
Process check access denied to open files and i/o counters #2033
Comments
@jonathandelanders Yeah you are right. Some metrics can not be collected if the monitored process runs under a different user than the agent unfortunately. |
Is it common practice to run the dd-agent as root in this case? Or has nobody just noticed it yet? |
@remh When is the monitored process ever going to be run by the same user as the agent? |
@lkesteloot @jonathandelanders However we do Not recommend it. If you wish to do so (at your own risks) Here is a work around:
|
For others who might be having this problem, I ended up monitoring my own stats with:
and uploading that to DD directly:
|
@lkesteloot Thanks for sharing the snippet. Happy to hear that you found a work around. |
I found an even better way, which gets both the current and max:
|
Thanks for the snippets. We will work around the limitation a similar way. |
I just got hit by this issue too @remh i'm running datadag as provded by the datadog deb package, but i get
is it meant to be broken out of the box? its not mentioned at all here http://docs.datadoghq.com/integrations/process/ that will not work out of the box in that case. is the only work-around to run datadog as root? and is there really still no way to have this done as a one-off setting that will persist through upgrades? |
this issue still exists |
What about using Proof of concept patch on top of datadog-agent 5.15 on debian jessie:
This works on debian jessie with the following sudo policy:
|
Hi when using the process module we are unable to get the metrics for system.processes.open_file_descriptors. I have dug around the python code a bit and found that the following errors are emitted... ( note that i changed the log method to info so i could see the errors ).
2015-11-02 22:36:48 UTC | INFO | dd.collector | checks.process(process.py:161) | psutil was denied acccess for method num_fds
2015-11-02 22:36:48 UTC | INFO | dd.collector | checks.process(process.py:161) | psutil was denied acccess for method io_counters
Im guessing that the psutil module does not have access to something in /proc.
The text was updated successfully, but these errors were encountered: