-
Notifications
You must be signed in to change notification settings - Fork 161
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
uwsgi config "lazy-apps: yes" "should_start_http_server" return False #31
Comments
Hm, I'm not familiar with the setting, let me have a quick look. |
One workaround that seems to work is exposing the metrics endpoint on the main application:
I'm still testing if the endpoint can be started on a new port with |
I haven't found a way to start the endpoint on a separate HTTP server - the master process doesn't seem to run the module. If you know a way, please let me know! Thanks! |
It is very effective! |
I'm a bit late here but anyway. Exposing the metrics endpoint on the main app is fine with |
That sounds like a good setup. How's the second app running to expose the metrics endpoint? Is it running in the same container? |
Yeah. I use Supervisord to run nginx and uWSGI. So basically I added another program to the game -- Flask app exposing the metrics. Another advantage is that this way, you can scale your app and the metrics app independently. |
Thanks for sharing! |
"UWsgiPrometheusMetrics().should_start_http_server()" returns False when I set uwsgi's startup parameter "lazy-apps:yes".
How can I use it when setting "lazy-apps:yes" ?
uwsgi config:
code:
The text was updated successfully, but these errors were encountered: