graphite - How to convert running total metric to change per time window? -


i'm working metric represents running total.

peaks 30 seconds apart, making me think count stored every 30 seconds. goal able see delta in running total per "$window" (template variable, ex: 1min, 30min). if window 30 seconds , difference between 2 consecutive counts 5, i'd see "5" datapoint. if window 1min, delta between 3 peaks.

running total

my understanding derivative help, produces constant 0 line. suppose has pointy-nature of graph. i've been playing hitcount , persecond, don't seem getting right numbers. advice?

edit: i'm trying out summarize(derivative(summarize(my.metric, "30s")), "$window"). idea enforce minimum resolution of 30s (since have 1 datapoint per 30s) summarize(my.metric, "30s"). then, use derivative rate of change, , summarize templated $window sum rates of changes interval i'm interested in. comments?

using summarize(derivative(summarize(my.metric, "30s")), "$window") worked.


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -