Consolidate as a SUM and random update
Hello,
I'm using whisper as a library to solve the following issue:
I have an HTTP page view logger producing text log with ID of the page requested. (there are about 5 millions differents possible pages)
Every minutes i'm parsing 1 minute of log and counting/sorting the ID to count views.
I have one whisper db per ID with the following format:
- 60 points with 60 seconds interval
- 24 points with 1 hour interval
- 30 points with 1 day interval
This allows me to count the views on the last hour, day, month.
The default consolidation function in whisper is "average", i 'd like to have a sum instead: Is it enought change
aggregateValue = float(sum(
to
aggregateValue = float(sum(
?
And i'd like to know what happends if the db are not updated in a timely way? For pages with 1 view per day?
Should i use xFilesFactor=0?
The average consolidation divide by the number of "knowValues", this means that unknow values are not considered as 0.
This is the behaviour i would expect.
Thanx for writting this nice piece of software and for your answers.
PS:
Would be great to have a "dump" function and a small tutorial:
import whisper
whisper.
whisper.
etc...
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Graphite Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply: