[rrd-users] [rrd] Can't I turn off data smoothing for GAUGE?
Philip Peake
philip at vogon.net
Thu Aug 19 16:52:06 CEST 2010
Yes ... I am actually measuring two parameters.
One of them has fairly high numbers (in the 100's), the interpolation
(or whatever you want to call it) is ok there. The actual number
displayed is not too important as long as its something like right.
The second set of samples are more like:
0 0 0 0 0 0 1 0 0 0 1 1 0 0 2 0 5 0 0 0 0 3 0 0 1 0 0 0 0 0 1
They are integer values. Displaying them as (for example) 0.666732134 is
meaningless.
On 8/19/2010 7:35 AM, Marc MERLIN wrote:
> On Wed, Aug 18, 2010 at 10:49:22PM -0700, Philip Peake wrote:
>> *rate = pdp_new[ds_idx] / interval;*
>> break;
>>
>> If this line is removed, it will behave as documented.
>> I can not really see any point in this, a gauge is a gauge, its not a rate.
>
> Well, there is a point if you're logging temperatures let's say, which is
> likely what many are doing with GAUGE.
>
> If weather is warming up, I could have (offsets/values)
>
> 0m 10m 17m 30m
>
> 10.0F 11F 11.7F 13F
>
> rrdtool has to store in those slots:
> 0m 10m 20m 30m
>
> and you'd likely want it to store:
> 10.0F 11F 12F 13F
>
>
> But that's great with temperatures, it's not great with all data types,
> including "is my mailbox opened or closed" (if I stored a '1', then rrdtool
> should return 1, not 0.92 because I sent the sample a bit late).
>
> See my other mail on how to accomplish that. Short of going through all the
> work of a new data type to support this, a creation flag for GAUGE that
> would say --raw-values would take care of this assuming the RRD format has a
> spare bit somewhere that would support saving that flag for GAUGE.
>
> Marc
More information about the rrd-users
mailing list