Now my question:
In the data returned by the query, I get the “status_code” in the value header (see first image) and I want to put the status code directly in my legend just after “difference” column.
With my awesome paint skills I made what I want (in red border) :
It’s possible to add the data in the time series legend ?
I’ve tested multiple transform combination but I never got the status_code data in the legend values list (this list below):
Welcome @Cripsii to the Grafana forum and thank you for such an excellent description of your issue.
What do you see in Influx Data Explorer with this query? Could you export a snippet of the data being returned (as a .csv) and paste here? That will allow others to hone in on a solution (which I am pretty sure is possible).
I get the same result in grafana. I think my problem is about the convertion of data.
I only manage to change value of the column “name” (to put the name on sensor in) with the transform “Label to fields”.
In the tranform Labels to fields, selecting anything in the yellow select chahge the legend column “name” in my time series. It’s Ok for that and it’s a behavior a want to. I selected “name” to identify the sensor name in my legend. without yellow field selected :
With "name"selected in yellow field:
So far I get all I want, but now I want to show my status_code in the legend of time series but i’m unable to achieve this
This is exacly what I want, Adding status_code column in legend:
Thanks for clarifying (I completely missed the fact that you are trying to format the legend…I was focused on the results table). I played around with some test data and cannot find a way to get the legend to display that status_code. It might be possible using some more a 3rd party plugin.