Title: Feature: user defined pidprovider by AMekss · Pull Request #441 · prometheus/client_python · GitHub
Open Graph Title: Feature: user defined pidprovider by AMekss · Pull Request #441 · prometheus/client_python
X Title: Feature: user defined pidprovider by AMekss · Pull Request #441 · prometheus/client_python
Description: Similarly as in #430 we are hitting problem when monitoring RQ workers. By design RQ worker forks new process for every new job, while it always execute one job at a time. The churn of process pids is insane and our worker pods are running out of memory in a few days of running because of this. Would be cool to have a possibility to override PID provider for such edge cases. This PR is an attempt to do so in less obtrusive way I managed to find. I'm not seasoned Python developer nor very familiar with all the ins and outs of this project, so feel free to give me hints on how proposed solution can be improved. This PR makes possible the following: import uwsgi from prometheus_client.pidprovider import Pidprovider Pidprovider.source = uwsgi.worker_id # or in case of RQ Pidprovider.source = os.getppid
Open Graph Description: Similarly as in #430 we are hitting problem when monitoring RQ workers. By design RQ worker forks new process for every new job, while it always execute one job at a time. The churn of process pids...
X Description: Similarly as in #430 we are hitting problem when monitoring RQ workers. By design RQ worker forks new process for every new job, while it always execute one job at a time. The churn of process pids...
Opengraph URL: https://github.com/prometheus/client_python/pull/441
X: @github
Domain: patch-diff.githubusercontent.com
| route-pattern | /:user_id/:repository/pull/:id/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:417d7324-1bdd-6c94-2a95-9b89ca36bb9c |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | BE18:1074E3:264E0D9:31DEE78:6990BDA0 |
| html-safe-nonce | 064940736e7e50454e2d9431d3ace62df4dbd21ef3f6f35b79795efa446719fe |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRTE4OjEwNzRFMzoyNjRFMEQ5OjMxREVFNzg6Njk5MEJEQTAiLCJ2aXNpdG9yX2lkIjoiNTU3MDg4NTIwNjc2MjYzNDY1NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 001c91318ca0f41b4e234f625303838ae75f5ad211e83df32c22bf743c8c2260 |
| hovercard-subject-tag | pull_request:298879711 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/prometheus/client_python/pull/441/checks |
| twitter:image | https://avatars.githubusercontent.com/u/327187?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/327187?s=400&v=4 |
| og:image:alt | Similarly as in #430 we are hitting problem when monitoring RQ workers. By design RQ worker forks new process for every new job, while it always execute one job at a time. The churn of process pids... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| turbo-cache-control | no-preview |
| go-import | github.com/prometheus/client_python git https://github.com/prometheus/client_python.git |
| octolytics-dimension-user_id | 3380462 |
| octolytics-dimension-user_login | prometheus |
| octolytics-dimension-repository_id | 30618733 |
| octolytics-dimension-repository_nwo | prometheus/client_python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 30618733 |
| octolytics-dimension-repository_network_root_nwo | prometheus/client_python |
| turbo-body-classes | logged-out env-production page-responsive full-width full-width-p-0 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 848bc6032dcc93a9a7301dcc3f379a72ba13b96e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width