Hey there.
I was looking for a simple way to get 2 y-axes, each using another unit, for the same query graphs.
There are numerous articles about that topic floating around, but with none of those I found really worked.
What I have are panels with very simple graphs, e.g. network IO, two graphs:
sum(irate(node_network_receive_bytes_total{instance=~"$node",job=~"$job"}[$__rate_interval]))
sum(irate(node_network_transmit_bytes_total{instance=~"$node",job=~"$job"}[$__rate_interval]))
Per default the use e.g. MB/s as the unit for the (left-side) y-axis.
Now I’d like to have the right side y-axis use e.g. MBit/s.
But the only way so far I found is, to plot each of the graphs twice, and set overrides for the 2nd pair using another axis placement and another unit.
The result still looks as if only two graphs were plotted (the two corresponding ones are anyway the same).
While that works, it seems to really plot all 4 graphs, so it takes much longer.
Given that this should be a fairly common used case (like °C / °F, or km/h / mph, etc. pp.)… isn’t there some better way to simply give a single graph two units?
Thanks,
Chris.