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

[AWS] Add support for collecting metrics from linked cloudwatch accounts using cross-account monitoring #6253

Closed
tommyers-elastic opened this issue May 18, 2023 · 2 comments · Fixed by elastic/beats#35540
Assignees
Labels
Team:Cloud-Monitoring Label for the Cloud Monitoring team

Comments

@tommyers-elastic
Copy link
Contributor

Cloudwatch recently added support for cross-account monitoring, which enables cloudwatch customers to setup a single 'monitoring account' which can access cloudwatch metrics from multiple other 'sharing accounts'.

Currently our AWS cloudwatch metrics integration does not support cross account metrics. Only metrics from the monitoring account itself are included when metric collection is configured.

In order to include metrics from linked sharing accounts, the IncludeLinkedAccounts parameter must be included in our ListMetrics API calls. The result of this is that the response contains metrics for the shared accounts as well as the monitoring account. The owning account is also listed for each returned metric, which will allow us to ensure that cloud.account.id is correct on all reported metrics.

@tommyers-elastic tommyers-elastic added the Team:Cloud-Monitoring Label for the Cloud Monitoring team label May 18, 2023
@andresrc
Copy link
Collaborator

@tommyers-elastic is the goal of this issue to always add IncludeLinkedAccounts in our API calls or to make it configurable?

@tommyers-elastic
Copy link
Contributor Author

@andresrc we are testing the effects of having this on for non-cross-account scenarios, but if there are no additional side effects i don't see any problems with keeping it enabled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team:Cloud-Monitoring Label for the Cloud Monitoring team
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants