Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a Meter metric type? #183

Closed
mumrah opened this issue Aug 28, 2013 · 1 comment
Closed

Add a Meter metric type? #183

mumrah opened this issue Aug 28, 2013 · 1 comment

Comments

@mumrah
Copy link

mumrah commented Aug 28, 2013

Would be cool to have a Meter type that just returned the rate of some counter.

Maybe something like:

@Monitor(name="hits", type=DataSourceType.METER, unit=TimeUnit.SECOND)

that would give you the rate of change of "hits" per second. Not sure what would be involved in doing this since I'm just getting started with Servo. But so far, I like it!

@brharrington
Copy link
Contributor

See:

https://github.com/Netflix/servo/wiki#converting-counter-values-to-rates

The COUNTER type is intended to be used to indicate a monotonically increasing value that is just incremented when something happens. That can then be passed through a rate transform in the observers to get a rate per second. The other advantage of simple counters like this is that you can get accurate average rates for multiple different intervals.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants