Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In Grafana How can I turn rows into columns [closed]

Tags:

grafana

I am trying to turn rows with information into columns in Grafana, but can't figure it out.

I have a table with the following information:

-----------------
| Field | Total |
-----------------
| DEBUG | 6     |
| INFO  | 76    |
-----------------

That I am trying to change into so I can turn it into a bar graph:

----------------
| DEBUG | INFO |
----------------
| 6     | 76   |
----------------

Is there any way to make this happen in Grafana?

like image 372
L Ja Avatar asked Jan 30 '26 02:01

L Ja


1 Answers

I tried "Grouping to matrix", seems to work for my scenario:

I have 3 columns:

-------------------------
| Metric | yr   | Value |
-------------------------
| TEMP   | 2000 | 1     |
| PRES   | 2000 | 2    |
| TEMP   | 2001 | 3     |
| PRES   | 2001 | 4    |
-------------------------

Using "Grouping to Matrix":

grouping-to-matrix

I get:

-------------------------
| yr\Metric | TEMP   | PRES |
-------------------------
| 2000      | 1      | 2    |
| 2001      | 3      | 4    |
like image 113
nemo Avatar answered Feb 01 '26 00:02

nemo



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!