labstack / echox

Echo cookbook and website
https://echo.labstack.com
MIT License
406 stars 286 forks source link

docs: Add custom prometheus metrics guide #262

Closed thomasklein94 closed 1 year ago

thomasklein94 commented 1 year ago

As the example shows, it's not straight-forward how to use the middleware for serving custom metrics (along with the default ones). I haven't found any guide initially for doing such work. There is also an issue in the middleware's repository asking for guidance about this problem.

It took me a while to figure everything out while digging around in the labstack/echo-contrib repo's code. With this addition to the documentation, I expect others will have an easier way to onboard this middleware to their apps.

aldas commented 1 year ago

thanks!