est
est

Reputation: 11845

Graphite function to get "today so far" incremental count?

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

Answers (1)

deniszh
deniszh

Reputation: 794

Please use summarize() function - or smartSummarize(), if you have it. Something like

summarize(nonNegativeDerivative(your counter), '1d', 'sum', false)

Upvotes: 2

Related Questions