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

Custom metrics wrapper example #104

Open
Krever opened this issue Aug 9, 2018 · 1 comment
Open

Custom metrics wrapper example #104

Krever opened this issue Aug 9, 2018 · 1 comment

Comments

@Krever
Copy link
Collaborator

Krever commented Aug 9, 2018

Lets provide and example on how to build custom metrics reporter. It seems quite a common case.

It should allow measuring execution time of given endpoint. Its especially usable for akka http, because once directive is built there is no way to extract endpoint matching path(in many cases we want to log metrics with label such as "/my/endpoint/:id" instead of "/my/endpoint/12345").

Maybe we can make something generic and ready to use out-of-the-box but an example would be enough.

@Fristi
Copy link
Contributor

Fristi commented Aug 9, 2018

Have been thinking also about this.

Codahale seems like a metrics reporter library people commonly use. I would do some research however if this is covering most of the cases. If so, maybe we can create a Codehale metrics interpreter which can be composed together with client and server interpreters?

The user can decide wether to export this to Promotheus or something else via an endpoint.

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

3 participants