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

Replace $__interval variable #129

Merged
merged 2 commits into from
Jan 25, 2022
Merged

Replace $__interval variable #129

merged 2 commits into from
Jan 25, 2022

Conversation

andresmgot
Copy link
Contributor

Fixes #100

TIL that the $__interval variable is replaced by default in the frontend when doing interpolateTemplateVariables. This does not work with alerting so Timestream removes these default template variables to do it in the backend instead. In any case, the $__interval alias (which is the same than $__interval_ms) was missing.

This is something that all the SQL data sources should do so I added an issue for this: grafana/grafana-aws-sdk#44

@andresmgot andresmgot requested review from a team, iwysiu and vickyyyyyyy and removed request for a team January 24, 2022 17:21
pkg/timestream/macros.go Outdated Show resolved Hide resolved
pkg/timestream/macros.go Show resolved Hide resolved
@andresmgot andresmgot merged commit 3ae69a0 into main Jan 25, 2022
@andresmgot andresmgot deleted the interval branch January 25, 2022 11:29
@InteliClic
Copy link

How do I get these changes to work on grafana now? $__interval still isn't working in my query.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

$__interval - Feature Request
3 participants