DataDog / ansible-datadog

Ansible role for Datadog Agent
Apache License 2.0
298 stars 222 forks source link

datadog_checks missing for Linux agents above version 5.x #470

Closed jeffbilder closed 1 year ago

jeffbilder commented 1 year ago

In reviewing the tasks, I noticed that only agent5 has the configuration building for the conf.d configurations. When using datadog_checks for agents above 5.x, they do not create the configurations under /etc/datadog-agent/conf.d.

jeffbilder commented 1 year ago

Can someone take a look at this PR? We really need this feature internally.

bkabrda commented 1 year ago

Hi :wave: first of all, sorry for the long wait.

I think the tasks that you're looking for are at https://github.com/DataDog/ansible-datadog/blob/main/tasks/_agent-linux-macos-shared.yml#L21 and should be used for Agent 6/7. If things don't seem to work fine for you, could you please post a reproducer configuration as well as datadog role version you're using and the exact problem that you're hitting? Thanks!

jeffbilder commented 1 year ago

Thanks this is fixed!