Skip to content
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

Update report processor to add tag function based on Puppet facts. #641

Merged
merged 3 commits into from
Jul 28, 2020

Conversation

murdok5
Copy link
Contributor

@murdok5 murdok5 commented Jul 23, 2020

Modify report class to manage report tags from facts through Datadog
config yaml file.

What does this PR do?

This PR enables a new parameter to be set that specifies which Puppet facts will be added as tags to each report sent to DataDog as an event.

Motivation

Working with a customer we found that correlating DataDog events and metrics was challenging and using Puppet Facts would simplify this problem.

Additional Notes

This is outside my typical expertise and as such I would request detailed review/comments/opinions/testing from anyone.

Describe your test plan

Using a current release of Datadog and Puppet Enterprise at the time of this PR I validated functionality and updated the readme with specific tips and note on how to use. I modified the values, deployed the Puppet code, restarted puppetserver service, and validated the new facts were appearing on the next Puppet run reports in Datadog.

Modify report class to manage report tags from facts through datadog
config yaml file.
@murdok5 murdok5 requested review from a team as code owners July 23, 2020 23:57
Copy link
Contributor

@cswatt cswatt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Docs look good! Made some spelling/grammar corrections and brought it in line with our styleguide.

@murdok5
Copy link
Contributor Author

murdok5 commented Jul 27, 2020

thanks for the updates @cswatt and good catch @albertvaka

@albertvaka
Copy link
Contributor

Merging then :) Thanks a ton for your patches! 🙇

@albertvaka albertvaka merged commit da2bf8e into DataDog:master Jul 28, 2020
@julien-lebot julien-lebot mentioned this pull request Aug 21, 2020
@albertvaka
Copy link
Contributor

@murdok5 I'm trying to extend this to add support for trusted facts. Is there something like Puppet::Node::Facts.indirection.find(host).values that I can use? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants