Hi all. I’ve been trying to figure out a way to calculate percentage in Grafana using Prometheus datasource.
Alert metric in Prometheus is pretty simple
100 * (node_free_bytes{device=~“/dev.+”,job=“sql server”} /node_size_bytes{device=~“/dev.+”,job=“sql server”})
These are each row for free_bye and size_byte. They both have the same size of rows
I want a table like this (or 4 gauges virtualization). Which is percentage each row for each table
It wasn’t a big deal if the table has only 4 rows. But I want to find a proficiency way for a big table. Please help