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

[BUG] Linked account metrics not included with connector Cloudwatch Metrics #2365

Open
pjoe opened this issue Oct 30, 2024 · 0 comments
Open
Labels
bug Something isn't working

Comments

@pjoe
Copy link

pjoe commented Oct 30, 2024

Describe the bug
When using the CW metrics connector I want to query metrics including those from linked accounts

To Reproduce
Steps to reproduce the behavior:

  1. Link CW metrics from another account
  2. Setup Athena CW metrics connector
  3. Try querying the linked metrics

Expected behavior
The linked metrics are returned

Screenshots / Exceptions / Errors
No results are returned

Connector Details (please complete the following information):

  • Version: 2024.42.3
  • Name: cloudwatch-metrics

Additional context
I think you need to include IncludeLinkedAccounts=true when listing metrics, maybe around here: https://github.com/awslabs/aws-athena-query-federation/blob/master/athena-cloudwatch-metrics/src/main/java/com/amazonaws/athena/connectors/cloudwatch/metrics/MetricsRecordHandler.java#L154

See also API: https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_ListMetrics.html

@pjoe pjoe added the bug Something isn't working label Oct 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant