A definitive solution to the derivative/scaling issue
Hi,
I know this problem has been asked previously but I can't find a good solution. The problem is that the derivative function simply calculates the difference between two metrics without taking into account the timestamp, so, if you sample at a n-minutes pace, the derivative will show values grouped into that sampling rate (normally that imply bigger values). A solution could be to scale the result. This is alright as long as you know the sampling rate, Im currently managing thousand of metrics and the graph creation is automated by means of munin2graphite so this approarch won't work. Another approach would be that of summarizing (i.e. oversampling) the metric before derivation, but this does not work, the result is not equivalent to that of the scaling method.
Looking into the code, I see, that the TimeSeries has a property called step that I guess is the time difference between points. Wouldn't it be correct to create a new funcion (let's call it timeUnitDerivat
Thanks in advance, Jose Fernandez (magec)
Question information
- Language:
- English Edit question
- Status:
- Expired
- For:
- Graphite Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply: