We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
You can continue the conversation there. Go to discussion →
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
Hi guys,
Quick question and hopefully not a dumb one but, nevertheless:
start_http_server only works with make_wsgi_app - is there anything preventing one from doing something similar with make_asgi_app instead?
start_http_server
make_wsgi_app
make_asgi_app
An alternative is to install prometheus-async which has its own start_http_server.
prometheus-async
We have a FastAPI + uvicorn (ASGI) application and are looking to expose some Prometheus metrics for export.
The text was updated successfully, but these errors were encountered:
from fastapi import FastAPI import prometheus_client app = FastAPI() metrics_app = prometheus_client.make_asgi_app() app.mount("/metrics", metrics_app)
Originally posted by @pquentin in #512 (comment)
Sorry, something went wrong.
No branches or pull requests
Hi guys,
Quick question and hopefully not a dumb one but, nevertheless:
start_http_server
only works withmake_wsgi_app
- is there anything preventing one from doing something similar withmake_asgi_app
instead?An alternative is to install
prometheus-async
which has its ownstart_http_server
.We have a FastAPI + uvicorn (ASGI) application and are looking to expose some Prometheus metrics for export.
The text was updated successfully, but these errors were encountered: