graphite-dev team mailing list archive
-
graphite-dev team
-
Mailing list archive
-
Message #01481
[Question #173304]: integral-functions for the long period are incorrect
New question #173304 on Graphite:
https://answers.launchpad.net/graphite/+question/173304
Hi.
We have some counter for the number of function calls that are sent to the graphite.
The rate is almost the same, so we may treat it as a constant.
We have the following retention rules:
retentions = 60:10080,300:8640,900:34560,1800:86400
So we have one week with 1m data, next month of 5m data, and so on.
If I use any integral function ("integral" of "summarize") it works in such a way:
integral(series)&from=-1d -> calculate number of events for the last day
integral(series)&from=-6d -> -//- for the last 6 days
when i use 7d (or 1w), it starts using 5m-data. If I'm not mistaken, it just sums all values, and as the number of values is 5 times less, so the summ is 5 times less than real value.
I've made a screenshots with examples:
http://imageshack.us/g/812/51145588.png/
The "6d" integral is about 7.2M, so "1w" should be about 7.2M/6 *7 = 8.4M, but it shows 1.7M (=8.4M/5).
I suppose the same problem occurs on the "1m" boundary and "1y" boundary.
What am I doing wrong? Should I change smth in config files or smth?
My usual usecase is to check the following graphs:
summarize(series,"1d")&from = -1w ( and also from=-1m)
summarize(series,"1m")&from = -3m ( and also from=-1y)
etc.
How should I do this?
Best,
Ivan.
--
You received this question notification because you are a member of
graphite-dev, which is an answer contact for Graphite.