Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Consider exposing /metrics Prometheus endpoint directly #574

Open
fabriziosestito opened this issue Oct 26, 2023 · 0 comments

Comments

@fabriziosestito
Copy link
Contributor

fabriziosestito commented Oct 26, 2023

Is your feature request related to a problem?

We could expose a /metrics endpoint to publish metrics in Prometheus data model format, without forcing the user to install the OpenTelemetry stack.
ATM, we expose metrics via an OpenTelemtry (otlp) exporter using GRPC.

Solution you'd like

Check if this could be done by using the OpenTelemetry rust library directly,
this example here seems fitting: https://github.com/open-telemetry/opentelemetry-rust/blob/main/opentelemetry-prometheus/examples/hyper.rs
The example could be adapted to the warp web server.

Alternatives you've considered

No response

Anything else?

No response

@fabriziosestito fabriziosestito changed the title Feature Request: Consider exposing /metrics prometheus endpoint directly Feature Request: Consider exposing /metrics Prometheus endpoint directly Oct 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

1 participant