Antiderivative function

Asked by katya

Hi,

I have a graph plotting a number of requests at different time intervals. I want to get a total number of requests per 24 hour period. Any suggestion on what function I should use? Cumulative function seems to have no effect. I searched online and it looks like antiderivative is what I want. Is that true? Does Graphite support it.

Thanks,
~Katya

Question information

Language:
English Edit question
Status:
Solved
For:
Graphite Edit question
Assignee:
No assignee Edit question
Solved by:
Matthew Kemp
Solved:
Last query:
Last reply:
Revision history for this message
Matthew Kemp (mattkemp) said :
#1

Graphite supports this. You need to use the integral function. As it turns out, that happens to be the antiderivative ;).

Revision history for this message
katya (katyaa) said :
#2

Heh, are you sure? Just let me know how you know this. 'Cause it does seem to give me the correct number, but from the integral definition I knew that's not what I wanted...

Revision history for this message
Best Matthew Kemp (mattkemp) said :
#3

Function Definitions:
Integral - This function creates new series whose values represent the growing sum of the values of the original series over time.

Cumulative - Normally when you request a graph whose time interval covers more data points than pixels you have to draw with, the series' values are consolidated by averaging them together so that there are few enough data points to draw in the available area. For some metrics, like say number of requests, which are inherently integer values, averaging may not be the desired means of consolidation. While averaging does give meaningful information, that is the average minutely number of requests which occurred in some larger time interval, this may not be what you desire. You may use the cumulative function to change the consolidation method of a series to be summing instead of averaging, which would yield the total number of requests which occurred in a given interval.

I thought this stuff was on http://graphite.wikidot.com, but I may be wrong.

Revision history for this message
katya (katyaa) said :
#4

Thanks Matt! Yes, that was the first place I looked, but didn't find any function documentation.

Revision history for this message
katya (katyaa) said :
#5

Thanks Matthew Kemp, that solved my question.