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

Add the host tag to RDS instances' parsed tags #8292

Merged
merged 3 commits into from
Jan 11, 2021

Conversation

justiniso
Copy link
Contributor

What does this PR do?

This is a follow-up to: #7353. A previous conversation on that PR (now removed due to a force push) suggested there may be a billing impact to adding the host tag to metrics. At the time, it was removed for investigation. I confirmed that host tags on metrics are not used for metering and will not impact host counts, so it is safe to add this tag back.

Motivation

This tag will allow customers monitoring RDS instances to filter by host:{rds_instance} and group by host. Currently the tag set sent with metrics are:

["host:agent_hostname", ...other tags]

With this change, the tag set will be:

["host:agent_hostname", "host:rds_hostname", ...other tags]

Additional Notes

If approved/merged, I will need help to cut a new release so postgres/mysql integrations can leverage this new functionality.

Review checklist (to be filled by reviewers)

  • Feature or bugfix MUST have appropriate tests (unit, integration, e2e)
  • PR title must be written as a CHANGELOG entry (see why)
  • Files changes must correspond to the primary purpose of the PR as described in the title (small unrelated changes should have their own PR)
  • PR must have changelog/ and integration/ labels attached

yzhan289
yzhan289 previously approved these changes Jan 6, 2021
Copy link
Contributor

@yzhan289 yzhan289 left a comment

Choose a reason for hiding this comment

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

Looks good to me, but just a small nit.

Comment on lines 13 to 14
* `hostname` - The full endpoint if the endpoint points to a specific instance
* `host` - The full endpoint if the endpoint points to a specific instance
Copy link
Contributor

Choose a reason for hiding this comment

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

Small nit: help distinguish hostname and host description from explanation in https://github.com/DataDog/integrations-core/pull/8292/files#r552717379.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I moved the comment up to the docstring to disambiguate the two. Let me know if the descriptions are still unclear without additional context!

@justiniso
Copy link
Contributor Author

@yzhan289 any other blockers to merge + release? The CI failures look unrelated to my changes.

@yzhan289
Copy link
Contributor

yzhan289 commented Jan 8, 2021

@justiniso nope it looks good to me otherwise.

@yzhan289 yzhan289 merged commit 06dff43 into master Jan 11, 2021
@yzhan289 yzhan289 deleted the justiniso/dbs-add-host-tag-rds branch January 11, 2021 14:58
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.

2 participants