We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I'm not sure how to read multiple processes per process. Is this supposed to be multiple threads per process?
The text was updated successfully, but these errors were encountered:
Hi. I had the same issue. I solved it by adding code to gunicorn config file:
from prometheus_client import CollectorRegistry, multiprocess def when_ready(_): multiprocess.MultiProcessCollector(CollectorRegistry()) def child_exit(_, worker): multiprocess.mark_process_dead(worker.pid)
Additionally, an environment variable PROMETHEUS_MULTIPROC_DIR has to be set to some empty dir. This is used to synchronize between workers.
PROMETHEUS_MULTIPROC_DIR
Sorry, something went wrong.
No branches or pull requests
I'm not sure how to read multiple processes per process. Is this supposed to be multiple threads per process?
The text was updated successfully, but these errors were encountered: