When I run the same query in grafana V10.1.1, the data does not pivot. Table view in V9.1.2 shows the ‘metric’ value as a column label, while V10.1.1 shows the metric column as a column.
I’m not sure how to move forward on this. Any hints would be appreciated.
Thanks heaps. It’s good to know I wasn’t missing something simple.
I’m using the ‘Time series’ visualization.
I recall reading somewhere that the ‘time_sec’ is deprecated and was curious as to why the $__time() macro uses it as the alias. I assume the $__time() macro deprecated too?
Thanks yosiasz.
I am using mysql.
The query you propose has the metric values such as 50883055 hard coded into the query.
The problem with that is that I don’t know those metric values in advance.
I have tried your suggestion of removing all tranformations, and change the query Time Series format.
Good news is that has worked! I am now getting a chart. Not properly formatted yet but at least a chart.