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

Not receiving process_* in multiprocess #166

Open
SyperAlexKomp opened this issue Dec 9, 2023 · 3 comments
Open

Not receiving process_* in multiprocess #166

SyperAlexKomp opened this issue Dec 9, 2023 · 3 comments

Comments

@SyperAlexKomp
Copy link

After setting up PROMETHEUS_MULTIPROC_DIR stopped receiving any of process data. When unsetting PROMETHEUS_MULTIPROC_DIR and using PrometheusMetrics all is working normal

@rycus86
Copy link
Owner

rycus86 commented Dec 9, 2023

See https://prometheus.github.io/client_python/multiprocess/

Custom collectors do not work (e.g. cpu and memory metrics)

In multiprocess mode you have more than one process, so the values wouldn't make much sense there.

@SyperAlexKomp
Copy link
Author

SyperAlexKomp commented Dec 9, 2023

Oh, It's bad. I just want to make uptime, memory and cpu dasboards for my site in grafna. Maybe you can recommend some ways how it's possible to do?

Mayde it's possible to send collector data all of processes? I don't know a lot about prometheus, so maybe it's stupid xD

@SyperAlexKomp
Copy link
Author

So I think I found the way how to make it. But now I got another issue. Idk why, but it gaves me wrong statistic. Here is example https://omeba-work.com/screenshoot/chrome_ygxCUXosGY.png. I tried to get raw data in prometheus directly and it still return
more truthful values. It's because multiprocess mode, but I don't know why

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