-
What Grafana version and what operating system are you using?
10.0.3 -
What are you trying to achieve?
creating time filter for a specific panel -
How are you trying to achieve it?
-
What happened?
-
What did you expect to happen?
-
Can you copy/paste the configuration(s) that you are having problems with?
-
Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.
-
Did you follow any online instructions? If so, what is the URL?
Yes you can. What is your datasource
Azure data explorer
You will some examples for using time filter
AzureActivity
| where $__timeFilter()
| project TimeGenerated, ResourceGroup, Category, OperationName, ActivityStatus, Caller
| order by TimeGenerated desc
My requirement is to create a dropdown tike filter for a specific panel
You can create that using dashboard variables. What would be the datasource of that drop down
Dropdown should have options like 5 min ago, 15 min ago, 30 min ago, 1 hour ago …
And for this i am thinking to have csv data source. Is there any best alternative for this ??
Use grafana’s built in time picker
Built in time picker will affect all the panels. I need to have time picker for specific panel so it will not disturb other panels on changing the time
As @yosiasz suggested, you can use dashboard variables and use them in your data source queries to retrieve data.
To select a time range, you can use the Variable panel, which has minimized and button views:
Or you can incorporate Apache ECharts panels with select elements and toolbox:
Not necessarily, if you dont use the global variables values of _from _to
I wanted this type of time filter dropdown at the panel level not at the dashboard level
I am able to achieve this by variable panel
I have achieved this in 2 ways.
-
using dashboard variables
-
using variable panel .