Steve Hillier

Results 41 comments of Steve Hillier

Hi there, unfortunately it will be a few days before I can take a look. Do you use nginx to remove a prefix before requests arrive to your FastAPI app?...

I tried to test running a simple app behind a proxy. I ran the app on 8000 and the proxy on 9000 with `/api` as the prefix. I set `root_path`...

`uvicorn.run(app, host="0.0.0.0", port=8000, root_path="/api")` seems to be working for me as well.

hi @dennys , any luck with this issue? I tried a basic test FastAPI app and the following commands: ``` export PROMETHEUS_MULTIPROCESS_DIR=/tmp/ gunicorn app:app -w 2 -b 0.0.0.0:8080 -k uvicorn.workers.UvicornWorker...

The closest thing I can think of is to add a custom metric with any labels you like https://github.com/stephenhillier/starlette_exporter#custom-metrics. However, that will just add a new metric; the original default...

Custom labels now available in 0.14 (#52 )

Good question. The middleware isn't tied to any particular endpoint, so you could skip adding the `/metrics` route and provide your own implementation as far as I know. The `handle_metrics`...

the requests_in_progress metric is now available in [v0.10.0](https://github.com/stephenhillier/starlette_exporter/releases/tag/v0.10.0)! Thanks @scotgopal for contributing it. Since you requested paths in the metric, we can leave this issue open until we are also...

I am going to close this as done, since in-progress requests metrics are working but I still haven't come up with a way to automatically label it by path. If...

Implemented in #52 and available in v0.14.0