-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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 rds metricset cpu.total.pct #28456
Conversation
This pull request does not have a backport label. Could you fix it @kaiyan-sheng? 🙏
NOTE: |
💚 Build Succeeded
Expand to view the summary
Build stats
Test stats 🧪
💚 Flaky test reportTests succeeded. 🤖 GitHub commentsTo re-run your PR in the CI, just comment with:
|
Pinging @elastic/integrations (Team:Integrations) |
@@ -43,17 +32,47 @@ func AddMetadata(endpoint string, regionName string, awsConfig awssdk.Config, ev | |||
return events | |||
} | |||
|
|||
for _, event := range events { | |||
cpuValue, err := event.RootFields.GetValue("aws.rds.metrics.CPUUtilization.avg") |
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.
If I understood correctly, this key gets mapped to aws.rds.cpu.total.pct
in the final event. Where does this happen?
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.
Thanks for the review! Im using the rename processor in aws module: https://github.com/elastic/beats/blob/master/x-pack/metricbeat/module/aws/rds/manifest.yml#L85
(cherry picked from commit a98cacd)
(cherry picked from commit a98cacd)
* Fix rds metricset cpu.total.pct (#28456) (cherry picked from commit a98cacd) * Update CHANGELOG.next.asciidoc Co-authored-by: kaiyan-sheng <[email protected]>
* Fix rds metricset cpu.total.pct (#28456) (cherry picked from commit a98cacd) * Update CHANGELOG.next.asciidoc Co-authored-by: kaiyan-sheng <[email protected]>
What does this PR do?
This PR is to fix RDS metricset
aws.rds.cpu.total.pct
by dividing the original value by 100. In the screenshot below, it also shows the value for CPU usage, the ARN are also different collected from different instances.Checklist
CHANGELOG.next.asciidoc
orCHANGELOG-developer.next.asciidoc
.Related issues
Screenshots