Skip to content

Conversation

@mlcdf
Copy link

@mlcdf mlcdf commented Jan 2, 2026

In the prometheus package, the NewReporter function exposes an HTTP server for the metrics. It's great, but if you also have other routes to exposes on your app, you need to create another HTTP server to handle those.

I propose adding a ServerMux option so that user of the lib can expose other endpoints on the same HTTP server started. I'm thinking of other observability related endpoints such as pprof (which is my very use case).

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants