Skip to content

Fix rds metricset cpu.total.pct#28456

Merged
kaiyan-sheng merged 2 commits into
elastic:masterfrom
kaiyan-sheng:rds_bugs
Oct 18, 2021
Merged

Fix rds metricset cpu.total.pct#28456
kaiyan-sheng merged 2 commits into
elastic:masterfrom
kaiyan-sheng:rds_bugs

Conversation

@kaiyan-sheng

@kaiyan-sheng kaiyan-sheng commented Oct 14, 2021

Copy link
Copy Markdown
Contributor

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

  • My code follows the style guidelines of this project
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have made corresponding change to the default configuration files
  • I have added tests that prove my fix is effective or that my feature works
  • I have added an entry in CHANGELOG.next.asciidoc or CHANGELOG-developer.next.asciidoc.

Related issues

Screenshots

Screen Shot 2021-10-14 at 3 27 29 PM

@botelastic botelastic Bot added the needs_team Indicates that the issue/PR needs a Team:* label label Oct 14, 2021
@kaiyan-sheng kaiyan-sheng self-assigned this Oct 14, 2021
@mergify

mergify Bot commented Oct 14, 2021

Copy link
Copy Markdown
Contributor

This pull request does not have a backport label. Could you fix it @kaiyan-sheng? 🙏
To fixup this pull request, you need to add the backport labels for the needed
branches, such as:

  • backport-v./d./d./d is the label to automatically backport to the 7./d branch. /d is the digit

NOTE: backport-skip has been added to this pull request.

@mergify mergify Bot added the backport-skip Skip notification from the automated backport with mergify label Oct 14, 2021
@elasticmachine

elasticmachine commented Oct 14, 2021

Copy link
Copy Markdown
Contributor

💚 Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview preview

Expand to view the summary

Build stats

  • Start Time: 2021-10-18T18:46:38.388+0000

  • Duration: 74 min 18 sec

  • Commit: 8bb67b8

Test stats 🧪

Test Results
Failed 0
Passed 2666
Skipped 248
Total 2914

💚 Flaky test report

Tests succeeded.

🤖 GitHub comments

To re-run your PR in the CI, just comment with:

  • /test : Re-trigger the build.

  • /package : Generate the packages and run the E2E tests.

  • /beats-tester : Run the installation tests with beats-tester.

@kaiyan-sheng kaiyan-sheng added backport-v7.15.0 Automated backport with mergify backport-v7.16.0 Automated backport with mergify Team:Integrations Label for the Integrations team labels Oct 15, 2021
@elasticmachine

Copy link
Copy Markdown
Contributor

Pinging @elastic/integrations (Team:Integrations)

@botelastic botelastic Bot removed the needs_team Indicates that the issue/PR needs a Team:* label label Oct 15, 2021
@mergify mergify Bot removed the backport-skip Skip notification from the automated backport with mergify label Oct 15, 2021
}

for _, event := range events {
cpuValue, err := event.RootFields.GetValue("aws.rds.metrics.CPUUtilization.avg")

Copy link
Copy Markdown
Contributor

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?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@kaiyan-sheng kaiyan-sheng merged commit a98cacd into elastic:master Oct 18, 2021
@kaiyan-sheng kaiyan-sheng deleted the rds_bugs branch October 18, 2021 20:03
mergify Bot pushed a commit that referenced this pull request Oct 18, 2021
(cherry picked from commit a98cacd)
mergify Bot pushed a commit that referenced this pull request Oct 18, 2021
(cherry picked from commit a98cacd)
kaiyan-sheng pushed a commit that referenced this pull request Oct 18, 2021
* Fix rds metricset cpu.total.pct (#28456)

(cherry picked from commit a98cacd)

* Update CHANGELOG.next.asciidoc

Co-authored-by: kaiyan-sheng <kaiyan.sheng@elastic.co>
kaiyan-sheng pushed a commit that referenced this pull request Oct 18, 2021
* Fix rds metricset cpu.total.pct (#28456)

(cherry picked from commit a98cacd)

* Update CHANGELOG.next.asciidoc

Co-authored-by: kaiyan-sheng <kaiyan.sheng@elastic.co>
Icedroid pushed a commit to Icedroid/beats that referenced this pull request Nov 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-v7.15.0 Automated backport with mergify backport-v7.16.0 Automated backport with mergify Team:Integrations Label for the Integrations team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Metricbeat AWS module RDS metricset reports incoherent data

3 participants