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

CPU and MEM metrics not available with multiworkers #207

Closed
Pazzeo opened this issue Jan 3, 2023 · 1 comment
Closed

CPU and MEM metrics not available with multiworkers #207

Pazzeo opened this issue Jan 3, 2023 · 1 comment

Comments

@Pazzeo
Copy link

Pazzeo commented Jan 3, 2023

Hi,

Following the issue #50, I was able to configure the right metrics when multi workers are in use in the system.
However, I'm not able to have the metrics for CPU and memory.
Do you know why?

Thanks
Matteo

@trallnag
Copy link
Owner

This is unrelated to trallnag/prometheus-fastapi-instrumentator. The official Prometheus client library for Python does not include these metrics when multi process mode is enabled.

See: https://github.com/prometheus/client_python#multiprocess-mode-eg-gunicorn

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