hono icon indicating copy to clipboard operation
hono copied to clipboard

Prometheus middleware

Open metrue opened this issue 3 years ago • 3 comments

It'd be great to have a prometheus middleware to help collect the metrics of hono service data.

metrue avatar May 23 '22 03:05 metrue

You say Prometheus is this? https://prometheus.io

yusukebe avatar May 23 '22 14:05 yusukebe

Yes, it would be great if we have metrics of endpoints.

On Mon, May 23, 2022 at 10:34 PM Yusuke Wada @.***> wrote:

You say Prometheus is this? https://prometheus.io

— Reply to this email directly, view it on GitHub https://github.com/honojs/hono/issues/263#issuecomment-1134757059, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHUOHQXWG7AZUULXHFS7J3VLOJOPANCNFSM5WULXX7Q . You are receiving this because you authored the thread.Message ID: @.***>

--

Minghe

metrue avatar May 24 '22 02:05 metrue

I think this can be provided as third-party middleware: https://github.com/honojs/hono/blob/main/docs/CONTRIBUTING.md#third-party-middleware

yusukebe avatar Jul 23 '22 13:07 yusukebe

Hey @metrue, I implemented a basic prometheus middleware for hono: https://www.npmjs.com/package/@hono/prometheus If you have any questions / feature requests etc feel free to open an issue in https://github.com/honojs/middleware and tag me

dios-david avatar Jan 25 '24 17:01 dios-david

Awesome, thanks @dios-david

I'll try it and let you if I find something.

metrue avatar Jan 26 '24 02:01 metrue