[collectd] tail plugin - how to generate counter graphs
Daniel Hilst
danielhilst at gmail.com
Fri Apr 6 14:50:10 CEST 2012
On 04/05/2012 03:21 PM, Daniel Hilst wrote:
> On 04/05/2012 12:13 PM, Daniel Hilst wrote:
>> On 04/05/2012 01:38 PM, Flyinvap wrote:
>>> Hi,
>>>
>>> Le 05.04.2012 11:38, Daniel Hilst a écrit :
>>>> I'm using tail to count matches on a file. When I do `watch rrdtool
>>>> lastupdate counter-total.rrd' I got the right numbers. But when I
>>>> create the graph[1] I got an m on Y axis. What is this? Megabytes?
>>>
>>> m stands for "milli" unit. Collectd and rrdtool don't know the unit,
>>> rrdtool stores value without unit (if rrdtool displays 1m, the value is
>>> 0.001 unit).
>>>
>>
>> Thanks for explanation.. I was confuse about my graph.. I want to see
>> the current value of the counter.. not the rate of change as counter
>> does. To get that I should use gauge, not counter.. I'm writing an exec
>> plugin script to achieve that,
>>
>> []'s
>
> I still can't understand why is tail putting fractions on rrd, any clue?
From collectd wiki[1], counter is a ratio, so this is why its stores
ratios.
[1] http://www.collectd.org/wiki/index.php/Derive
[]'s
--
Follow the white rabbit!
More information about the collectd
mailing list