Reputation: 11845
I have a counter and would like to display a singlestat
on grafana for today's incremental, something like Current MAX(gauge) - MIN(guage)
, since the gauge is monotone increasing, it also equals to `Current(gauge) - MIDNIGHT(gauge)
Which function should I use in graphite?
Upvotes: 0
Views: 1126
Reputation: 794
Please use summarize() function - or smartSummarize(), if you have it. Something like
summarize(nonNegativeDerivative(your counter), '1d', 'sum', false)
Upvotes: 2