Skip to content

[AWS][RDS] Add dimension fields for TSDB support #6079

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

Merged
merged 7 commits into from
Jun 1, 2023

Conversation

constanca-m
Copy link
Contributor

What does this PR do?

Add dimension fields to RDS datastream.

Details

Fields set as dimension:

  • DBInstanceIdentifier, unique per region and account (both dimensions as well).
  • DBClusterIdentifier and, therefore, Role as it can be more than one per cluster identifier.
  • EngineName is the only non-ecs dimension for some documents with metrics related to it.
  • DatabaseClass and SourceRegion for the same reason as EngineName.
  • db_instance.identifier (should be the same as DBInstanceIdentifier)

There is no change in the number of documents after enabling TSDB:

image

Checklist

  • I have reviewed tips for building integrations and this pull request is aligned with them.
  • I have verified that all data streams collect metrics or logs.
  • I have added an entry to my package's changelog.yml file.
  • I have verified that Kibana version constraints are current according to guidelines.

How to test this PR locally

Refer to #6078

Related issues

Signed-off-by: constanca-m <[email protected]>
@constanca-m constanca-m requested a review from a team as a code owner May 3, 2023 14:31
@constanca-m constanca-m self-assigned this May 3, 2023
Signed-off-by: constanca-m <[email protected]>
@constanca-m constanca-m mentioned this pull request May 3, 2023
6 tasks
@elasticmachine
Copy link

elasticmachine commented May 3, 2023

💚 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: 2023-06-01T11:51:36.918+0000

  • Duration: 47 min 1 sec

Test stats 🧪

Test Results
Failed 0
Passed 188
Skipped 4
Total 192

🤖 GitHub comments

Expand to view the GitHub comments

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

  • /test : Re-trigger the build.

@elasticmachine
Copy link

elasticmachine commented May 3, 2023

🌐 Coverage report

Name Metrics % (covered/total) Diff
Packages 100.0% (15/15) 💚
Files 93.75% (15/16) 👎 -3.246
Classes 93.75% (15/16) 👎 -3.246
Methods 86.131% (236/274) 👎 -5.602
Lines 85.925% (7387/8597) 👎 -6.091
Conditionals 100.0% (0/0) 💚

@@ -51,6 +57,7 @@
description: |
Contains the name of the compute and memory capacity class of the DB instance.
- name: db_instance.identifier
dimension: true
Copy link
Contributor

Choose a reason for hiding this comment

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

db_instance.identifier (should be the same as DBInstanceIdentifier)

so it is not always the same as DBInstanceIdentifier?

Copy link
Contributor Author

@constanca-m constanca-m May 17, 2023

Choose a reason for hiding this comment

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

The permissions required to access those parameters are different, so the user can have only one of them set. That's why I decided to set the two parameters as dimensions @tetianakravchenko

Copy link
Contributor

@agithomas agithomas left a comment

Choose a reason for hiding this comment

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

LGTM!

@constanca-m constanca-m merged commit baaa60c into elastic:main Jun 1, 2023
@constanca-m constanca-m deleted the rds-add-dimensions branch June 1, 2023 12:42
@elasticmachine
Copy link

Package aws - 1.38.0 containing this change is available at https://epr.elastic.co/search?package=aws

sodhikirti07 pushed a commit that referenced this pull request Jun 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants