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

[v9.5.x] Google Cloud Monitor: Fix mem usage for dropdown #67949

Merged
merged 1 commit into from May 5, 2023

Conversation

grafanabot
Copy link
Contributor

Backport b2e1b3a from #67683

* Google Cloud Monitor: Fix mem usage for dropdown

Previously the Metric name dropdown would attempt to load _all_ the
available metric names into the Select which would eventually crash the
browser if the dataset was large enough.

We can fix this by using AsyncSelect and making another query once a
Service is selected _and_ the user types a few characters.

* fix: update tests for AsyncSelect

* fix lint

* fix: add subset of metrics on initial load

(cherry picked from commit b2e1b3a)
@grafanabot grafanabot requested a review from asimpson May 5, 2023 20:50
@grafanabot grafanabot added backport A backport PR no-changelog Skip including change in changelog/release notes type/bug datasource/GoogleCloudMonitoring area/frontend labels May 5, 2023
@asimpson asimpson added this to the 9.5.x milestone May 5, 2023
@asimpson asimpson enabled auto-merge (squash) May 5, 2023 20:52
@asimpson asimpson merged commit 5bfb970 into v9.5.x May 5, 2023
18 checks passed
@asimpson asimpson deleted the backport-67683-to-v9.5.x branch May 5, 2023 20:55
@github-actions
Copy link
Contributor

github-actions bot commented May 5, 2023

Backend code coverage report for PR #67949
No changes

@github-actions
Copy link
Contributor

github-actions bot commented May 5, 2023

Frontend code coverage report for PR #67949

Plugin Main PR Difference
cloud-monitoring 72.76% 72.76% 0%

@zerok zerok added add to changelog and removed no-changelog Skip including change in changelog/release notes labels Jun 29, 2023
@zerok zerok modified the milestones: 9.5.x, 9.5.6 Jun 30, 2023
@zerok zerok modified the milestones: 9.5.6, 9.5.x, 9.5.7 Jul 17, 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.

None yet

3 participants