flask-dashboard / Flask-MonitoringDashboard

Automatically monitor the evolving performance of Flask/Python web services.
http://flask-monitoringdashboard.readthedocs.io/
MIT License
767 stars 159 forks source link

How can I use Flask-MonitoringDashboard with uwsgi? #314

Open eosfomogame opened 4 years ago

eosfomogame commented 4 years ago

How can I use Flask-MonitoringDashboard with uwsgi? It works in local, but when i try to use on uwsgi, I will receive an error:

*** no app loaded. going in full dynamic mode ***
*** uWSGI is running in multiple interpreter mode ***
spawned uWSGI worker 1 (and the only) (pid: 46666, cores: 1)
--- no python application found, check your startup logs for errors ---
mircealungu commented 4 years ago

seems that you're not configuring uwsgi correctly? does your app work w/o the FMD and stops working after you add FMD?

eosfomogame commented 4 years ago

Thanks for you help @mircealungu, exactly my app works without FMD. I'm a not an expert of uwsgi, I'm using this: https://www.digitalocean.com/community/tutorials/how-to-serve-flask-applications-with-uswgi-and-nginx-on-ubuntu-18-04 Is there something wrong with configuration that doesn't allow me to use FMD?

EDIT: Solved: added 2 threads for any process

mircealungu commented 4 years ago

I can't tell you unless i see the code. Is the code on GitHub maybe? I can have a look. or otherwise can you share the python file containing the code where you attach the dashboard to the application?