The rrdtool y-axis value is "200 m" instead of "0.2"

I have rrd that basically contains values ​​from 0 to 1 (linux load avarage).

Sometimes the graph is displayed on the y axis => "0.1 0.2 ... 0.9". This is what I want.

But in other cases, I see the following "100 m 200 m ...".

Is there any way to force the display to "0.1, etc."? values?

+6
source share
1 answer

-X 0 did the trick.

[- X | -units-exponent value]

This sets the scaling of the exponent to 10 ** y-axis values. Typically, the values ​​will be scaled to the appropriate units (k, M, etc.). However, you can always display units in k (Kilo, 10e3), even if the data is in the range of M (Mega, 10e6), for example. The value must be an integer that is a multiple of 3 between -18 and 18 inclusive. It is an indicator of the units you want to use. For example, use 3 to display y axis values ​​in k (Kilo, 10e3, thousand), Use -6 to display y axis values ​​in u (Micro, 10e-6, millionths). Use a value of 0 to prevent y-axis scaling.

+12
source

Source: https://habr.com/ru/post/922756/


All Articles