-
Notifications
You must be signed in to change notification settings - Fork 149
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
Decision needed: Should we allow deleting a labelset from an existing metric? #140
Comments
ConstMetric might be relevant indeed, those are different approach. |
Supporting a "Const Metric" or Custom Collector would be useful either way. |
An example found in the wild of someone needing this feature. I'm not sure what's the best answer, just adding context: Note: Java has a |
That question is looking for custom collectors as they're writing an exporter, direct instrumentation is the wrong way to handle it so isn't relevant here. |
I see, ok |
This issue comes from this recently closed PR.
I'll try to summarize the situation here, but I encourage to read the discussion on that PR.
Basically, the question is whether we should allow deletion of a labelset for a metric that's observed values on that labelset.
Reasons for doing it:
Metrics with labels SHOULD support a remove() method with the same signature as labels() that will remove a Child from the metric no longer exporting it
Reasons against:
The text was updated successfully, but these errors were encountered: