Package promwish provides a simple wish middleware exposing some Prometheus metrics.
You can add promwish as a middleware to your app:
promwish.Middleware("localhost:9222", "my-app"),
This will create the metrics and start a HTTP server on localhost:9222 to expose the metrics.
You can also use promwish.MiddlewareRegistry and promwish.Listen if you need more options.
Check the _examples folder for a full working example.

Overall
Maintained
Code review
Go module
Latest release
Releases this year
3,417 followers · starred Dec 2021
1,255 followers · starred Dec 2021
Package promwish provides a simple wish middleware exposing some Prometheus metrics.
You can add promwish as a middleware to your app:
promwish.Middleware("localhost:9222", "my-app"),
This will create the metrics and start a HTTP server on localhost:9222 to expose the metrics.
You can also use promwish.MiddlewareRegistry and promwish.Listen if you need more options.
Check the _examples folder for a full working example.

Overall
Maintained
Code review
Go module
Latest release
Releases this year
3,417 followers · starred Dec 2021
1,255 followers · starred Dec 2021