prometheus-client-c icon indicating copy to clipboard operation
prometheus-client-c copied to clipboard

Add method to unregister metrics

Open a-rose opened this issue 4 years ago • 0 comments

Hello,

This PR adds prom_collector_registry_unregister_metric(). This gives the ability to remove metrics without having to restart the whole registry.

It also contains a fix for a crash in prom_map_delete_internal where the node is deleted before its key, resulting in using a deleted object when deleting the key later on.

a-rose avatar Sep 28 '21 12:09 a-rose