-
Notifications
You must be signed in to change notification settings - Fork 594
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
$__interval template doesn't work #372
Comments
Maybe grafana folks could chime in @beorn7 @gouthamve or maybe @roidelapluie has some insight. |
I'm actually not really a Grafana expert. We could loop in the real experts if needed. But let's use our own ingenuity first. My guess is that Different question: What's wrong with using $__interval in the queries directly? What are the circumstances where you want to use something else? |
I think it was just that we had specific values previously and wanted to avoid creating work for us should we want to switch back again. If there’s nothing then I’m happy with using the variable directly though. |
I see. I'd indeed recommend to go for This should be "almost" right in probably all the cases. For the related problem of getting "true" coverage, see grafana/grafana#21417 |
This is breaking the master branch. generated dashboards .json are having the $__interval placeholder, it should be a numeric instead. Previous changes added the $__interval template , and then removed it , however the $__interval placeholder present in dashboards did not get updated with the appropriate values. |
@povilasv can you double check this? |
|
My PR (#383) just removed unused variable, don't see how it could break master. I also tried to generate dashboards from master branch and everything is fine. This is what get's generated:
and it render fine in Grafana. |
What's the time range you are looking at and Prometheus scrape interval? Try increasing the window to last 2 days? Does it render? |
Ah, increasing Grafana time range to 24 hours worked, anything below does not render. |
Yeah, you need to set a Min step or Min time interval. Shameless plug: I had planned to do a talk about exactly that at Grafanacon. With the conference being Corona-cancelled, there will be some kind of online version of that. See https://grafana.com/about/events/grafanacon/2020/ for more details in the close future. |
👍 I'm closing this issue as it has been solved |
Currently my change #357 broke dashboards
I tried multiple different ways in grafana UI to fix it, by changing variable template to 'constant', 'text box' type with value
$__interval
, but it just doesn't render :/I think there are 2 options:
$__interval
into queriesI mean getting rid of this part:
What should we do?
The text was updated successfully, but these errors were encountered: