Skip to content

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

Merged
albertvaka merged 3 commits intoDataDog:masterfrom
murdok5:report_tagging
Jul 28, 2020
Merged

Update report processor to add tag function based on Puppet facts.#641
albertvaka merged 3 commits intoDataDog:masterfrom
murdok5:report_tagging

Conversation

@murdok5
Copy link
Copy Markdown
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
Comment thread templates/datadog-reports.yaml.erb Outdated
Copy link
Copy Markdown
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.

Co-authored-by: Albert Vaca <albertvaka@gmail.com>
@murdok5
Copy link
Copy Markdown
Contributor Author

murdok5 commented Jul 27, 2020

thanks for the updates @cswatt and good catch @albertvaka

@albertvaka
Copy link
Copy Markdown
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
Copy Markdown
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!

cegeka-jenkins pushed a commit to cegeka/puppet-datadog_agent that referenced this pull request Feb 5, 2026
…ataDog#641)

Modify report class to manage report tags from facts through datadog
config yaml file.
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