New question #286462 on Graphite:
https://answers.launchpad.net/graphite/+question/286462

I am wondering about the example storage-aggregation.conf. Specifically, about 
the counters.

[sum]
pattern = \.count$
xFilesFactor = 0
aggregationMethod = sum

I have counters that monotonically increase over time - the absolute counters, 
like the number of bytes going through the network interface. Occasionally they 
reset to zero. I use nonNegativeDeriative function to display them on the 
graphs.

The problem is that "sum" aggregation for these values does not work. I even 
did a simple test to prove myself I am not crazy :) Consider the example: I 
have the value reported once a minute. The value increases by 100 every minute. 
I have configured the aggregation so it keeps few values at 60 second precision 
and then aggregates at 5 minutes. So, here is what I see in the whisper file:

Archive #0 (at 60 sec):
T1: 100
T1+60: 200
T1+120: 300
T1+180: 400
T1+240: 500
T1+300: 600
T1+360: 700
etc

Archive #1 (at 300 sec):
T1+300: 1500
etc

This is wrong. In fact, "max" should be used and the value for T1+300 should be 
500 (or 600 - I saw some alignment-related fluctuations). But the primary 
reason why I am puzzled is that it is the default in the example file. Looks 
like this "sum" only works for the cases when the metric represents a rate 
(events/minute) so it will correctly aggregate to events/5-minutes. Or it is a 
counter that gets reset after each report?

Either I do not understand something very obvious or, probably, this example 
aggregation file should have a comment about the kind of .*.count$ values it 
handles correctly.

-- 
You received this question notification because your team graphite-dev
is an answer contact for Graphite.

_______________________________________________
Mailing list: https://launchpad.net/~graphite-dev
Post to     : graphite-dev@lists.launchpad.net
Unsubscribe : https://launchpad.net/~graphite-dev
More help   : https://help.launchpad.net/ListHelp

Reply via email to