-
What Grafana version and what operating system are you using?
Version 9.3.1 (commit: 89b365f8b1, branch: HEAD)
OP: RaspBian -
What are you trying to achieve?
For a couple of months ago I set up a dashbord for viewing rain in millimeters(mm).
Now, it hasn’t rain for some weeks but today it started and the dashbord shows everything in micrometers. I havn’t done any modification of the dashboard or the panels. -
How are you trying to achieve it?
I have check the panels and confirmed that the unit are still mm(millimeters) so I don’t know what I possibly can change to make it display the unit in mm again.
By default, Grafana automatically scales the unit based on the magnitude of the value. For example, if you have values of 0.14kW and 3000kW, Grafana displays them as 140W and 3MW, respectively. You can use custom units to control this behavior by setting a prefix, suffix, or custom SI unit
That’s exactly what I have done, I did set the standard options to length-millimeters once and from the beginning it worked but to day it shows values lower than 1.0 mm in um.
Like:
0.0mm, 200um, 400um, 600um, 800um, 1.0 mm, 1.2mm etc.
So I’m confused about why this changed by itself today.
You talked about “suffix” and “prefix” and I read about it in the doc but I don’t know where I can do that and how the prefix/suffix should look like.
I just meant that unit auto-scaling based on value is an intended Grafana behaviour.
If you do not need auto-scaling, you can just specify mm as custom unit instead of choosing Length / millimeter (mm):