-
Notifications
You must be signed in to change notification settings - Fork 261
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
Fix Datadog Reports #848
Fix Datadog Reports #848
Conversation
|
||
- rpm -Uvh https://yum.puppet.com/puppet8-release-el-9.noarch.rpm #installs the puppet-agent repo | ||
- yum install -y puppet-agent-8.10.0 rubygems ruby-devel procps-ng | ||
- dnf group install -y "Development Tools" | ||
- dnf group install -y "Development Tools" --nobest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
--nobest
is to allow installing a lower version that meets package version requirements
@@ -127,7 +127,7 @@ def process | |||
Puppet.debug "Sending metrics for #{@msg_host} to Datadog" | |||
@dog.batch_metrics do | |||
metrics.each do |metric, data| | |||
data.each_value do |val| | |||
data.values.each do |val| # rubocop:disable Style/HashEachMethods |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
error that requires this:
2025-03-14T15:12:49.135Z ERROR [qtp2067368747-71] [puppetserver] Puppet Report processor failed: undefined method each_value' for #<Puppet::Util::Metric:0x7317bca6>
What does this PR do?
Fix a syntax error in the datadog reports.
Motivation
Bugfix
Additional Notes
Describe your test plan