echo-contrib icon indicating copy to clipboard operation
echo-contrib copied to clipboard

Docs or examples for creating custom prometheus metrics

Open starkers opened this issue 3 years ago • 0 comments

Issue Description

Hello, I'm just checking out the middleware (don't want to write my own)..

Typically I'm used to just using the vanilla prometheus promauto (EG promauto.NewCounter() to create custom metrics. However with this library and the examples it is not clear how this is done with this middleware.

I can see severally public functions but honestly I can't figure out how to just do this simple thing.

Is this even possible? If so, I'm happy to PR some docs to echo with an example if someone can explain to me how to access them. (thanks)

Checklist

  • [x] Dependencies installed
  • [x] No typos
  • [x] Searched existing issues and docs

Expected behaviour

Actual behaviour

Steps to reproduce

Working code to debug

Version/commit

starkers avatar May 18 '22 19:05 starkers