René's URL Explorer Experiment


Title: Allow adding arbitrary labels to metrics when generating output by willnewton · Pull Request #741 · prometheus/client_python · GitHub

Open Graph Title: Allow adding arbitrary labels to metrics when generating output by willnewton · Pull Request #741 · prometheus/client_python

X Title: Allow adding arbitrary labels to metrics when generating output by willnewton · Pull Request #741 · prometheus/client_python

Description: It's useful to be able to apply a label across all metrics, for example when using a multi-processing framework to apply a label for worker ID to all metrics (including from builtin collector types...

Open Graph Description: It's useful to be able to apply a label across all metrics, for example when using a multi-processing framework to apply a label for worker ID to all metrics (including from builtin collector t...

X Description: It's useful to be able to apply a label across all metrics, for example when using a multi-processing framework to apply a label for worker ID to all metrics (including from builtin collect...

Mail addresses
will.newton@gmail.com

Opengraph URL: https://github.com/prometheus/client_python/pull/741

X: @github

direct link

Domain: patch-diff.githubusercontent.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:7f6c27a4-9c99-b59f-67a8-082918ee6aa8
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8356:275E8B:3146040:31F2089:6970302E
html-safe-nonce075066ce79329dd33db7db2dab7f7cc4132f25614741477ba484653d9b3db006
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MzU2OjI3NUU4QjozMTQ2MDQwOjMxRjIwODk6Njk3MDMwMkUiLCJ2aXNpdG9yX2lkIjoiMjgzMTQ1MTc4MzMyNjUxOTgiLCJyZWdpb25fZWRnZSI6InNlYSIsInJlZ2lvbl9yZW5kZXIiOiJzZWEifQ==
visitor-hmacdbf4e2f478a00adfd9014616cd32930b7ea10d4e400dde85fea51409772db231
hovercard-subject-tagpull_request:808298344
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/prometheus/client_python/741/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/1b34e951cbf2626bd59d49bfd6453f5c0893cc4892155659117c7c14ca1c1087/prometheus/client_python/pull/741
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/1b34e951cbf2626bd59d49bfd6453f5c0893cc4892155659117c7c14ca1c1087/prometheus/client_python/pull/741
og:image:altIt's useful to be able to apply a label across all metrics, for example when using a multi-processing framework to apply a label for worker ID to all metrics (including from builtin collector t...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamewillnewton
hostnamegithub.com
expected-hostnamegithub.com
None9920a62ba22d06470388e2904804fb7e5ec51c9e35f81784e9191394c74b2bd2
turbo-cache-controlno-preview
go-importgithub.com/prometheus/client_python git https://github.com/prometheus/client_python.git
octolytics-dimension-user_id3380462
octolytics-dimension-user_loginprometheus
octolytics-dimension-repository_id30618733
octolytics-dimension-repository_nwoprometheus/client_python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id30618733
octolytics-dimension-repository_network_root_nwoprometheus/client_python
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasef643964067a552f02067066d6a910b2f90a5721f
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/prometheus/client_python/pull/741#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fprometheus%2Fclient_python%2Fpull%2F741
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fprometheus%2Fclient_python%2Fpull%2F741
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=prometheus%2Fclient_python
Reloadhttps://patch-diff.githubusercontent.com/prometheus/client_python/pull/741
Reloadhttps://patch-diff.githubusercontent.com/prometheus/client_python/pull/741
Reloadhttps://patch-diff.githubusercontent.com/prometheus/client_python/pull/741
prometheus https://patch-diff.githubusercontent.com/prometheus
client_pythonhttps://patch-diff.githubusercontent.com/prometheus/client_python
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fprometheus%2Fclient_python
Fork 841 https://patch-diff.githubusercontent.com/login?return_to=%2Fprometheus%2Fclient_python
Star 4.3k https://patch-diff.githubusercontent.com/login?return_to=%2Fprometheus%2Fclient_python
Code https://patch-diff.githubusercontent.com/prometheus/client_python
Issues 108 https://patch-diff.githubusercontent.com/prometheus/client_python/issues
Pull requests 28 https://patch-diff.githubusercontent.com/prometheus/client_python/pulls
Discussions https://patch-diff.githubusercontent.com/prometheus/client_python/discussions
Actions https://patch-diff.githubusercontent.com/prometheus/client_python/actions
Projects 0 https://patch-diff.githubusercontent.com/prometheus/client_python/projects
Wiki https://patch-diff.githubusercontent.com/prometheus/client_python/wiki
Security Uh oh! There was an error while loading. Please reload this page. https://patch-diff.githubusercontent.com/prometheus/client_python/security
Please reload this pagehttps://patch-diff.githubusercontent.com/prometheus/client_python/pull/741
Insights https://patch-diff.githubusercontent.com/prometheus/client_python/pulse
Code https://patch-diff.githubusercontent.com/prometheus/client_python
Issues https://patch-diff.githubusercontent.com/prometheus/client_python/issues
Pull requests https://patch-diff.githubusercontent.com/prometheus/client_python/pulls
Discussions https://patch-diff.githubusercontent.com/prometheus/client_python/discussions
Actions https://patch-diff.githubusercontent.com/prometheus/client_python/actions
Projects https://patch-diff.githubusercontent.com/prometheus/client_python/projects
Wiki https://patch-diff.githubusercontent.com/prometheus/client_python/wiki
Security https://patch-diff.githubusercontent.com/prometheus/client_python/security
Insights https://patch-diff.githubusercontent.com/prometheus/client_python/pulse
Sign up for GitHub https://patch-diff.githubusercontent.com/signup?return_to=%2Fprometheus%2Fclient_python%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://patch-diff.githubusercontent.com/login?return_to=%2Fprometheus%2Fclient_python%2Fissues%2Fnew%2Fchoose
Jump to bottomhttps://patch-diff.githubusercontent.com/prometheus/client_python/pull/741#issue-comment-box
willnewtonhttps://patch-diff.githubusercontent.com/willnewton
prometheus:masterhttps://patch-diff.githubusercontent.com/prometheus/client_python/tree/master
willnewton:extra-labels-collectorhttps://patch-diff.githubusercontent.com/willnewton/client_python/tree/extra-labels-collector
Allow adding arbitrary labels to metrics when generating output https://patch-diff.githubusercontent.com/prometheus/client_python/pull/741#top
willnewtonhttps://patch-diff.githubusercontent.com/willnewton
prometheus:masterhttps://patch-diff.githubusercontent.com/prometheus/client_python/tree/master
willnewton:extra-labels-collectorhttps://patch-diff.githubusercontent.com/willnewton/client_python/tree/extra-labels-collector
Conversation 4 https://patch-diff.githubusercontent.com/prometheus/client_python/pull/741
Commits 2 https://patch-diff.githubusercontent.com/prometheus/client_python/pull/741/commits
Checks 0 https://patch-diff.githubusercontent.com/prometheus/client_python/pull/741/checks
Files changed https://patch-diff.githubusercontent.com/prometheus/client_python/pull/741/files
Please reload this pagehttps://patch-diff.githubusercontent.com/prometheus/client_python/pull/741
https://github.co/hiddenchars
https://patch-diff.githubusercontent.com/prometheus/client_python/pull/{{ revealButtonHref }}
https://patch-diff.githubusercontent.com/willnewton
willnewtonhttps://patch-diff.githubusercontent.com/willnewton
Dec 22, 2021https://patch-diff.githubusercontent.com/prometheus/client_python/pull/741#issue-1086710423
Please reload this pagehttps://patch-diff.githubusercontent.com/prometheus/client_python/pull/741
https://patch-diff.githubusercontent.com/willnewton
Allow adding arbitrary labels to metrics when generating outputhttps://patch-diff.githubusercontent.com/prometheus/client_python/pull/741/commits/026301ad4bb1e6c5a1659f7e1ad58ebc6f1d086e
026301ahttps://patch-diff.githubusercontent.com/prometheus/client_python/pull/741/commits/026301ad4bb1e6c5a1659f7e1ad58ebc6f1d086e
https://patch-diff.githubusercontent.com/willnewton
willnewtonhttps://patch-diff.githubusercontent.com/willnewton
Dec 22, 2021 https://patch-diff.githubusercontent.com/prometheus/client_python/pull/741#ref-pullrequest-1084584827
Allow adding arbitrary labels to metrics when generating output #740 https://patch-diff.githubusercontent.com/prometheus/client_python/pull/740
https://patch-diff.githubusercontent.com/willnewton
prometheus_client/registry.py: Fix flake8 errorshttps://patch-diff.githubusercontent.com/prometheus/client_python/pull/741/commits/3ec8e22b9e46c96af37155fd016dfe9318fb5174
3ec8e22https://patch-diff.githubusercontent.com/prometheus/client_python/pull/741/commits/3ec8e22b9e46c96af37155fd016dfe9318fb5174
https://patch-diff.githubusercontent.com/csmarchbanks
csmarchbankshttps://patch-diff.githubusercontent.com/csmarchbanks
Dec 22, 2021 https://patch-diff.githubusercontent.com/prometheus/client_python/pull/741#pullrequestreview-838738673
View reviewed changes https://patch-diff.githubusercontent.com/prometheus/client_python/pull/741/files/3ec8e22b9e46c96af37155fd016dfe9318fb5174
csmarchbankshttps://patch-diff.githubusercontent.com/csmarchbanks
https://patch-diff.githubusercontent.com/prometheus/client_python/pull/741#pullrequestreview-838738673
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
client_golang/prometheus#WrapRegistererWithhttps://pkg.go.dev/github.com/prometheus/client_golang/prometheus#WrapRegistererWith
https://prometheus.io/docs/instrumenting/writing_exporters/#target-labels-not-static-scraped-labelshttps://prometheus.io/docs/instrumenting/writing_exporters/#target-labels-not-static-scraped-labels
Please reload this pagehttps://patch-diff.githubusercontent.com/prometheus/client_python/pull/741
prometheus_client/registry.pyhttps://patch-diff.githubusercontent.com/prometheus/client_python/pull/741/files/3ec8e22b9e46c96af37155fd016dfe9318fb5174#diff-683812fc1c7c1545d3032466c8129f41d25d69de5bf9173ac09d958809bf432e
csmarchbankshttps://patch-diff.githubusercontent.com/csmarchbanks
Dec 22, 2021https://patch-diff.githubusercontent.com/prometheus/client_python/pull/741#discussion_r774090712
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://patch-diff.githubusercontent.com/prometheus/client_python/pull/741
https://patch-diff.githubusercontent.com/Sircular
Sircularhttps://patch-diff.githubusercontent.com/Sircular
Oct 7, 2022https://patch-diff.githubusercontent.com/prometheus/client_python/pull/741#issuecomment-1271890997
@csmarchbankshttps://github.com/csmarchbanks
Please reload this pagehttps://patch-diff.githubusercontent.com/prometheus/client_python/pull/741
https://patch-diff.githubusercontent.com/csmarchbanks
csmarchbankshttps://patch-diff.githubusercontent.com/csmarchbanks
Oct 7, 2022https://patch-diff.githubusercontent.com/prometheus/client_python/pull/741#issuecomment-1272145820
Please reload this pagehttps://patch-diff.githubusercontent.com/prometheus/client_python/pull/741
Please reload this pagehttps://patch-diff.githubusercontent.com/prometheus/client_python/pull/741
Sign up for freehttps://patch-diff.githubusercontent.com/join?source=comment-repo
Sign in to commenthttps://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fprometheus%2Fclient_python%2Fpull%2F741
https://patch-diff.githubusercontent.com/csmarchbanks
csmarchbanks https://patch-diff.githubusercontent.com/csmarchbanks
https://patch-diff.githubusercontent.com/prometheus/client_python/pull/741/files/3ec8e22b9e46c96af37155fd016dfe9318fb5174
Please reload this pagehttps://patch-diff.githubusercontent.com/prometheus/client_python/pull/741
https://patch-diff.githubusercontent.com/willnewton
https://patch-diff.githubusercontent.com/Sircular
https://patch-diff.githubusercontent.com/csmarchbanks
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.