jochen-schweizer / express-prom-bundle

express middleware with standard prometheus metrics in one bundle
MIT License
310 stars 68 forks source link

Add possibility to manipulate /metrics endpoint registration #1

Closed modelga closed 8 years ago

modelga commented 8 years ago

Add possibility to manipulate /metrics endpoint registration e.g. se another expressjs instance.

Origin of pull request: We need to expose app details using express instance listening at port 80, but we won't expose publicly '/metrics'. We want to be able to create another express instance and expose there '/metrics'.

Please bless this PR, and merge.

disjunction commented 8 years ago

Hi, thanks for the contribution. I added the option to the docs and published a new npm version 1.1.7