Skip to content

Add API to set default value of labeled metrics#203

Open
fen-pl wants to merge 1 commit intoprometheus-erl:masterfrom
fen-pl:set-default-for-labels
Open

Add API to set default value of labeled metrics#203
fen-pl wants to merge 1 commit intoprometheus-erl:masterfrom
fen-pl:set-default-for-labels

Conversation

@fen-pl
Copy link
Copy Markdown

@fen-pl fen-pl commented Apr 23, 2026

This PR adds a capability to initialize a metric with labels with a default value for specific label values. This is not done automatically, as label values are not known at the moment of metric creation, so it's up to the application whether these should be set to initial default value or not.

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

Successfully merging this pull request may close these issues.

1 participant