prometheus_flask_exporter icon indicating copy to clipboard operation
prometheus_flask_exporter copied to clipboard

start_http_server run uwsgi in production mode

Open rhuanbarreto opened this issue 2 years ago • 1 comments

I'm using metrics.start_http_server in order to have a separate server on a different port. But the server starts in development mode and all the access logs goes to stderr. How can I run this in production mode?

rhuanbarreto avatar Mar 09 '22 08:03 rhuanbarreto

That function delegates to https://github.com/prometheus/client_python/blob/4e0e7ff7e615601a35376c414b7081945ed417f8/prometheus_client/exposition.py#L165 so whatever configuration that underlying wsgi server has we should support.

rycus86 avatar Mar 09 '22 08:03 rycus86