Is it possible to remove a reported metric? #177
-
Is it possible to remove a reported metric? I'm afraid the answer will be no, but you never know. Relates to tomkerkhove/promitor#1923 |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 9 replies
-
I will investigate about removing a reported metric About removing 'Labels', we Should implement this:
Just to remove labels, is it enough? |
Beta Was this translation helpful? Give feedback.
-
You can use Remove method of the ICollectorRegistry to remove all samples of the metric:
Or RemoveLabelled on the metric family to remove the single sample. |
Beta Was this translation helpful? Give feedback.
You can use Remove method of the ICollectorRegistry to remove all samples of the metric:
registry.Remove("my-metric")
Or RemoveLabelled on the metric family to remove the single sample.