You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, granfana-snapshot-tool, as you have observed, doesn't handle the grafana "computed" variables $__interval.
The actual behavior is only to detect format $var or ${var}. (So that ${var:<format>} is not handle.)
Then, when the var_name var ( from $var) is detected, it is only substituted with a user defined value (simple python str.replace() function).
So, the user has to define the corresponding value via a "context" definition for that dashboard.
That is the exact purpose of the "context" feature:
In the granfana-snapshot-tool's config file you have to add a context part:
general:
...grafana:
...contexts:
"dashboard_name": # in your context: https___google_com_2024-09-21_101558_1541855# time_from: "now-1h"# time_to: "now"vars:
__interval: 2m# or what ever value you want.
Currently that is the only way to handle vars.
But I do agree that it may be a good idea to to have the same behavior than for grafana predefined vars.
Hope it can help.
Using grafana 10.1.1
The text was updated successfully, but these errors were encountered: