graphite-dev team mailing list archive
-
graphite-dev team
-
Mailing list archive
-
Message #04236
Re: [Question #232684]: Graph shows average values instead of sum
Question #232684 on Graphite changed:
https://answers.launchpad.net/graphite/+question/232684
Sjoerd Langkemper gave more information on the question:
One way to solve this is to use the cumulative function, which can be
found under "Apply Function" > "Special" > "Aggregate By Sum". The
summarize function of course also works.
The comments in the code says this about the cumulative function: By
default, when a graph is drawn, and the width of the graph in pixels is
smaller than the number of datapoints to be graphed, Graphite averages
the value at each pixel. The cumulative() function changes the
consolidation function to sum from average. This is especially useful
in sales graphs, where fractional values make no sense (How can you have
half of a sale?)
I would suggest making this the default for whisper files that have
'sum' as aggregation method. Whisper-info.py shows aggregationMethod is
"sum" for my archive. If I make a graph of that data, it makes sense
that the data is summed in the graph.
--
You received this question notification because you are a member of
graphite-dev, which is an answer contact for Graphite.