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

[v10.1.x] Cloudwatch: Prevent log group requests with ARNs if feature flag is off #75691

Merged
merged 2 commits into from Sep 28, 2023

Conversation

grafana-delivery-bot[bot]
Copy link
Contributor

Backport b83a58e from #75672


What is this feature?

Bug Fix for GovCloud customers using the Cloudwatch Datasource plugin

AWS GovCloud users do not have support right now from AWS for querying log groups by arn. As of around 9.5 or so we've made this the default behavior, which meant that some gov cloud customers have queries saved with log group arns rather than names.

We then put this work back behind a feature flag, so that querying by arn could be turned off.

However this does not fix any previously saved queries that may still have logGroups saved in their queries, and any datasources that had been saved at this time with a default log group selection of logGroups rather than logGroupNames will cause the explore page queries to also fail as they will always have the default logGroups in their selection.

This PR ensures that if the feature flag is turned off we always ignore LogGroups in queries and only observe LogGroupNames.

Special notes for your reviewer:

Please check that:

  • It works as expected from a user's perspective.
  • If this is a pre-GA feature, it is behind a feature toggle.
  • The docs are updated, and if this is a notable improvement, it's added to our What's New doc.

@sarahzinger sarahzinger merged commit fe2ea4d into v10.1.x Sep 28, 2023
8 checks passed
@sarahzinger sarahzinger deleted the backport-75672-to-v10.1.x branch September 28, 2023 19:02
@zerok zerok modified the milestones: 10.1.x, 10.1.5 Oct 11, 2023
grafana-delivery-bot bot added a commit that referenced this pull request Oct 12, 2023
… flag is off (#75691)

* Cloudwatch: Prevent log group requests with ARNs if feature flag is off (#75672)

(cherry picked from commit b83a58e)

Co-authored-by: Sarah Zinger <sarah.zinger@grafana.com>
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.

None yet

3 participants