[rrd-users] More observations and questions on COUNTER

Philip Peake philip at vogon.net
Sun Oct 24 16:36:55 CEST 2010


On 10/23/2010 11:44 PM, Tobias Oetiker wrote:
> Hi Philip,
>
> about storing NAN, I would suggest the following:
>
> Yesterday Philip Peake wrote:
>
>> On 10/23/2010 10:49 AM, Simon Hobson wrote:
>>> I don't want to see what's in the database. Please provide a set of
>>> update values that reproduce the problem. If we don't know what went
>>> in, then we cannot even guess at whether what comes out is correct or
>>> not.
>> Ok - added a print of the data that is supplied to rrdtool, then dropped
>> the connection to force a read error.
>>
>> This is what was passed to the DB:
>>
>> 1287865680:80720496:21353409:88678191:121292820:21641300:65478015:23557328:95055770:104725771
>> 1287865710:80721285:21354274:88679077:121294030:21642052:65480082:23558714:95056884:104726886
>> 1287865740:80722122:21355290:88679970:121294992:21642728:65482047:23559995:95057766:104728008
>> 1287865770:80723194:21356148:88680872:121295888:21643313:65484024:23561517:95058921:104729359
> 1287865780:U:U:U:U:U:U:U:U:U
> 1287865781:0:0:0:0:0:0:0:0:0
>> 1287865830:0:0:0:0:0:0:0:0:0
>> 1287865860:0:0:0:0:0:0:0:0:0
>> 1287865890:0:0:0:0:0:0:0:0:0
>> 1287865920:0:0:0:0:0:0:0:0:0
>> 1287865950:0:0:0:0:0:0:0:0:0
>> 1287865980:0:0:0:0:0:0:0:0:0
>> 1287866010:0:0:0:0:0:0:0:0:0
>> 1287866040:0:0:0:0:0:0:0:0:0
>> 1287866070:0:0:0:0:0:0:0:0:0
>> 1287866100:0:0:0:0:0:0:0:0:0
>> 1287866130:0:0:0:0:0:0:0:0:0
>> 1287866160:0:0:0:0:0:0:0:0:0
>> 1287866190:0:0:0:0:0:0:0:0:0
>> 1287866220:0:0:0:0:0:0:0:0:0
>> 1287866250:0:0:0:0:0:0:0:0:0
>> 1287866280:80739444:21371669:88696608:121313195:21655956:65519543:23582106:95072573:104743263
>> 1287866310:80740228:21372452:88697358:121314100:21656508:65521468:23583236:95073263:104743944
>> 1287866340:80740899:21373269:88698173:121315111:21657190:65523385:23584208:95073908:104744613
>> 1287866370:80741789:21374232:88699086:121316178:21657895:65525380:23585369:95074622:104745350
> also note that you might rather want to use
>
> DERIVE instead of GAUGE with a value range from 0 to the maximum
> rate.
>
> This will turn counter restes into Unknown automatically and will
> not do any 32bit or 64bit counter wrap magic.
>
> cheers
> tobi
>

I am using COUNTER not GAUGE. What I am interested in is the number of
events per period, not the cumulative total, which is what the data
source provides, so I'm looking at the difference between successive
samples.

Philip



More information about the rrd-users mailing list