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

Loki: Replace pre-calculated $__interval values for backend interpolation #79697

Merged
merged 1 commit into from
Dec 20, 2023

Conversation

domasx2
Copy link
Contributor

@domasx2 domasx2 commented Dec 19, 2023

Sister PR to #79645.

Need to have $__interval and $__interval_ms in scopedVars for Scenes to no-op interpolate them instead of using TimeMacro and in some cases resolving to empty string.

Related: grafana/scenes#507

@domasx2 domasx2 added datasource/Loki area/datasource/frontend no-backport Skip backport of PR no-changelog Skip including change in changelog/release notes labels Dec 19, 2023
@domasx2 domasx2 requested a review from a team as a code owner December 19, 2023 14:44
@grafana-delivery-bot grafana-delivery-bot bot added this to the 10.3.x milestone Dec 19, 2023
@domasx2 domasx2 added the internal for issues made by grafanistas label Dec 19, 2023
@domasx2
Copy link
Contributor Author

domasx2 commented Dec 19, 2023

@torkelo @dprokop is this still relevant then given grafana/scenes#508 fix?

@dprokop
Copy link
Member

dprokop commented Dec 19, 2023

@domasx2 I think it still is. @torkelo fix is about scenario where the there's not response present yet, but it does not account for this peculiar case for Loki and Prometheus, that those var are completely ignored in the client-side interpolation.

@domasx2 domasx2 enabled auto-merge (squash) December 19, 2023 15:05
@domasx2 domasx2 force-pushed the domas-loki-interval-interpolation branch from 1582c49 to 5e27b40 Compare December 20, 2023 08:11
@domasx2 domasx2 merged commit b312f48 into main Dec 20, 2023
15 checks passed
@domasx2 domasx2 deleted the domas-loki-interval-interpolation branch December 20, 2023 08:24
@summerwollin summerwollin modified the milestones: 10.3.x, 10.3.0 Jan 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/datasource/frontend area/frontend datasource/Loki internal for issues made by grafanistas no-backport Skip backport of PR no-changelog Skip including change in changelog/release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants