promwish
promwish copied to clipboard
Prometheus middleware for Wish
promwish
Package promwish provides a simple wish middleware exposing some Prometheus metrics.
Example Usage
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.
Example Dashboard
![image](https://user-images.githubusercontent.com/245435/145126273-2dc9cb98-7886-40b5-b173-229c50746fba.png)