prometheus_flask_exporter
prometheus_flask_exporter copied to clipboard
Could not import prometheus_flask_exporter.multiprocess
Hi there, I recently started using prometheus for monitoring my flask applications, specifically using prometheus_flask_exporter. I found out that the current version of the exporter did not have a multiprocess module in it. This I resort to the previous version prometheus-flask-exporter==0.22.4 which worked perfectly.
I would kindly ask if there were some changes to the current version and weather or not the multiprocess module wont be supported in the future versions. Thanks
Hello,
Looking at the commits, I don't think anything multiprocessing related was changed there, it should still be supported (assuming prometheus_client continues to support it).
Can you give some more details on what is not working, perhaps what commands you're running and what error messages you get? Thanks!
Thanks.
I went through README file of this project and it suggested to install the latest version of the library using pip install prometheus-flask-exporter
without specifying version number. This using this command the library was installed successfully but I could not find multiprocess module in lib directory of my environment. my ultimate goal was to import to my project using in this way from prometheus_flask_exporter.multiprocess import GunicornPrometheusMetrics
. But I have noticed that the version in pyorg has version number already specified. Thus It might be an issue. Thanks
If you're still having trouble with this, perhaps have a look at some of the examples in this repo that are supposed to work (haven't run them for a few weeks probably). https://github.com/rycus86/prometheus_flask_exporter/tree/master/examples/gunicorn-multiprocess-109 for example looks close to what you described. Hope this helps!
Ok Thanks