Title: Make registry optional for MultiProcessCollector by marksteward · Pull Request #249 · prometheus/client_python · GitHub
Open Graph Title: Make registry optional for MultiProcessCollector by marksteward · Pull Request #249 · prometheus/client_python
X Title: Make registry optional for MultiProcessCollector by marksteward · Pull Request #249 · prometheus/client_python
Description: @brian-brazil this is a trivial first PR to make it possible to make it easier to add more collectors during a multiproc scrape. This is so the pattern eventually can be: registry = CollectorRegistry() registry.register(MultiProcessCollector()) registry.register(PlatformCollector()) # add your own CustomCollectors here instead of having to explicitly pass None to each Collector. I would also have included the change for PlatformCollector, but I'm concerned that might break existing code. Should it be accompanied by deprecation warnings, or is it not worth doing?
Open Graph Description: @brian-brazil this is a trivial first PR to make it possible to make it easier to add more collectors during a multiproc scrape. This is so the pattern eventually can be: registry = CollectorRe...
X Description: @brian-brazil this is a trivial first PR to make it possible to make it easier to add more collectors during a multiproc scrape. This is so the pattern eventually can be: registry = CollectorRe...
Opengraph URL: https://github.com/prometheus/client_python/pull/249
X: @github
Domain: patch-diff.githubusercontent.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:d7a23106-76a8-ffa9-1556-7f8d2b79a216 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | ACE2:3FF195:17784E8:1E15E36:6990096E |
| html-safe-nonce | e989be57e52e39f45ab7bfc6258d24e96638cceea5c075eda55cd18c48686b5c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQ0UyOjNGRjE5NToxNzc4NEU4OjFFMTVFMzY6Njk5MDA5NkUiLCJ2aXNpdG9yX2lkIjoiNDM5ODUxMTMxODUzMDc4NzY5NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 81ea1f070e249308ac676ec025e59499b4227e56c67595ffba0b49d0847543b9 |
| hovercard-subject-tag | pull_request:170363125 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,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/249/files |
| twitter:image | https://avatars.githubusercontent.com/u/121960?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/121960?s=400&v=4 |
| og:image:alt | @brian-brazil this is a trivial first PR to make it possible to make it easier to add more collectors during a multiproc scrape. This is so the pattern eventually can be: registry = CollectorRe... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| turbo-cache-control | no-preview |
| diff-view | unified |
| 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 |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 3b33c5aedc9808f45bc5fcf0b1e4404cf749dac7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width