Open ssbarnea opened 8 years ago
Hi @ssbarnea! I think we should consider adding this once the feature has been implemented in the process check of dd-agent.
I'll leave the issue in the Later
milestone until then.
Any news on this feature?
@ssbarnea How did you end up solving your monitoring of open FDs for a certain user?
Sorry, got busy with other urgencies and I am not sure when I will be able to look at this again. For the moment I do not need the future anymore but I am sure I will need it again at some point.
The recommended way to do this according to the documentation https://docs.datadoghq.com/integrations/process/#configuration is to add this line to the /etc/sudoers
file
dd-agent ALL=NOPASSWD: /bin/ls /proc/*/fd/
An additional task with an specific flag should be added to this ansible role.
lsof is needed in order to gather important metrics for datadog but is neither installed nor configured inside sudoers so dd-agent user can call it.
See https://github.com/DataDog/dd-agent/issues/853