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

From and To parameters not working in Grafana 8 #96

Open
robinsonjj opened this issue Oct 19, 2021 · 3 comments
Open

From and To parameters not working in Grafana 8 #96

robinsonjj opened this issue Oct 19, 2021 · 3 comments

Comments

@robinsonjj
Copy link

After updating to grafana 8 I have found that my iframes are no longer loading if they have ctrl.range.from.format("x") or ctrl.range.to.format("x") in them.

The template parameters are still working ok. Any ideas on what I could replace these with?

@mkp-bartsch
Copy link

I have the same problem. Is it possible to output the selected time period via another variable in the current version 8.x?

@shehrozeee
Copy link

shehrozeee commented Jan 11, 2022

Thank you for identifying what causes the issue. I am able to use a work around for this
I created dashboard variables for the to and from times
image

and then using them instead of

from:ctrl.range.from.format('x'), // x is unix ms timestamp
to:ctrl.range.to.format('x'),

to this

from:ctrl.template('$__from_date'), // x is unix ms timestamp
to:ctrl.template('$__to_date'),

Cheers

@vignesh321
Copy link

Thank you for giving solution

Still having issue in creating variables in dashboard ...

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

No branches or pull requests

4 participants