You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 3, 2023. It is now read-only.
Is your feature request related to a problem? Please describe.
I would like to expose metrics from my app, without having to create a separate HTTP server for metrics endpoint.
Currently, PrometheusStatsExporter can only start a new HTTP server on the configured port. It does not expose an API that would allow integrating metrics endpoint to my app.
Describe the solution you'd like
Because Prometheus exporter leverages express to create an HTTP server, the simplest solution would be to expose express request handler, which can be further attached to the router of application.
Is your feature request related to a problem? Please describe.
I would like to expose metrics from my app, without having to create a separate HTTP server for metrics endpoint.
Currently, PrometheusStatsExporter can only start a new HTTP server on the configured port. It does not expose an API that would allow integrating metrics endpoint to my app.
Describe the solution you'd like
Because Prometheus exporter leverages express to create an HTTP server, the simplest solution would be to expose express request handler, which can be further attached to the router of application.
Example:
If this feature makes sense to you, I'll be happy to open PR 😉
The text was updated successfully, but these errors were encountered: