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

(PIE-1374) Refactor metrics parsing #211

Merged
merged 1 commit into from
Jan 12, 2024

Conversation

coreymbe
Copy link
Contributor

@coreymbe coreymbe commented Jan 5, 2024

Summary

This commit refactors metrics parsing as we no longer support the legacy metrics collected with older versions of the puppet_metrics_collector.

Detailed Description

  • Updated CHANGELOG.md
  • Updated metadata.json to include puppet_metrics_collector v.8.0.0.
  • Updated lib/puppet/application/splunk_hec.rb.
    • Removed parse_metrics() function; parsing is done directly in main.
    • Moved parse_legacy_metrics() function to lib/puppet/util/splunk_hec.rb.
  • Maint changes to lib/puppet/util/splunk_hec.rb.
    • Pass :default (nil) for file and line in Puppet.warn_once()

Checklist

[X] PR title is "(Ticket|Maint) Short Description"
[X] Commit title matches PR title

@coreymbe coreymbe requested a review from a team as a code owner January 5, 2024 22:23
Copy link
Contributor

@actowery actowery left a comment

Choose a reason for hiding this comment

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

🥇

@coreymbe coreymbe merged commit 2ca22e2 into puppetlabs:main Jan 12, 2024
24 checks passed
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.

2 participants