Hi, I have 5 prometheus queries which display fine when “Time series”, the default is chosen for the chart. I need to have all measures that you can see in the snapshot hereunder to Bar chart, when I switch to bar chart I get an error as you can see in the 2nd snapshot. How can I fix this please? Why I need this is because I need 3 series in barchart and have one series in lines on the bars
1st snapshot
Exactly grant2, this is what I am looking for. In the past I managed to acheive this in Power BI as you can notice in the snapshot. As I am migrating to Grafana a I find more robust and easier to setup and more nice features, I recently decided to migrate to Grafana
By the way, you can notice up in the snapshot “Time Filter” by day or month, do we have something similar in Grafana?
Not sure that I understand your question, but if Power BI has this for a Time Filter…
then Grafana has this…
But I think you already knew that
Can you see from my previous screenshot how to combine lines and bars? It’s basically using an override to specify which series you want to appear as bars.
The 1st and 2nd one as they represent the same thing but in a different way and they are linked. When I click on any of the items in the 1st one the 2nd graph is updated accordingly. If 1st one is not possible, the 2nd graph is more important for me.
Here are the queries I am using (which I need as Bar charts)
Sorry @salam1, but I do not have any experience with Prometheus queries.
I am almost certain that you will need to use a Time series visualization with a combination of bars for:
sql_waiting_tasks_count{exported_instance=~“$instance”,wait=“FT_IFTSHC_MUTEX”} / 60000
sql_waiting_tasks_count{exported_instance=~“$instance”,wait=“BACKUPIO”} / 60000
sql_waiting_tasks_count{exported_instance=~“$instance”,wait=“WRITELOG”} / 60000
sql_waiting_tasks_count{exported_instance=~“$instance”,wait=“PAGEIOLATCH_SH”} / 60000
sql_wait_time_ms{exported_instance=~“$instance”,wait=“LCK_M_X”} / 60000
…and a line for
sql_pc_SQLStatistics_BatchRequests_over_sec{exported_instance=“$instance”} / 60000
To make a chart like this with mixed bars and lines, you need to use an Override: