문제

I am trying to get the value of a metric 'activelogins' from Graphite. I increment the value by 1 every time a user logs in and decrements it when he logs out. I need to show the current number of 'activelogins' in my dashboard. Querying using summarize(stats_counts.user.activelogins,"99years", "sum") as expected just gives me the sum and not the current which I actually want.

How do I get the current count of 'activelogins' from Graphite ?

도움이 되었습니까?

해결책

I imagine you could use the absolute of the derivative of stats_counts.user.activelogins and than summarize this, as in absolute(derivative(stats_counts.user.activelogins)).

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top