Skip to content
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

Could not import prometheus_flask_exporter.multiprocess #161

Open
BarnabasMatonya opened this issue Sep 29, 2023 · 4 comments
Open

Could not import prometheus_flask_exporter.multiprocess #161

BarnabasMatonya opened this issue Sep 29, 2023 · 4 comments

Comments

@BarnabasMatonya
Copy link

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

@rycus86
Copy link
Owner

rycus86 commented Sep 29, 2023

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!

@BarnabasMatonya
Copy link
Author

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

@rycus86
Copy link
Owner

rycus86 commented Sep 29, 2023

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!

@BarnabasMatonya
Copy link
Author

Ok Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants