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.2.x] Explore: Fix queries (cached & non) count in usage insights #78216

Merged
merged 1 commit into from
Nov 15, 2023

Conversation

grafana-delivery-bot[bot]
Copy link
Contributor

Backport 42a3f36 from #78097


What is this feature?

Fixes Explore query stats reporting for usage insights by reusing the enrichWithDashboardInfo function (renamed to enrichWithInfo).

Given that enrichWithDashboardInfo is only attaching dashboard info when there's an open dashboard the code is slightly simplified, and no special-casing for explore is needed.

Why do we need this feature?

Currently running queries in Explore reuslts in the total number of series reported as number of queries. data from usage-insights is therefore skewed.

Which issue(s) does this PR fix?:

Fixes #https://github.com/grafana/support-escalations/issues/7863

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.

* Fix: Fix queries (cached & non) count in usage insights

* also keep deprecated error property

* Fix & refactor tests

(cherry picked from commit 42a3f36)
@Elfo404 Elfo404 merged commit 685bbda into v10.2.x Nov 15, 2023
22 checks passed
@Elfo404 Elfo404 deleted the backport-78097-to-v10.2.x branch November 15, 2023 16:45
@ifrost ifrost modified the milestones: 10.2.x, 10.2.2 Nov 20, 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

2 participants