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

Allow adding arbitrary labels to metrics when generating output #740

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Dec 20, 2021

  1. Allow adding arbitrary labels to metrics when generating output

    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). This change alows passing a dictionary of
    labels and values to generate_latest which will then be applied
    to all generated metrics.
    
    Signed-off-by: Will Newton <[email protected]>
    willnewton committed Dec 20, 2021
    Configuration menu
    Copy the full SHA
    97f05b5 View commit details
    Browse the repository at this point in the history