client_python icon indicating copy to clipboard operation
client_python copied to clipboard

Bug in remove function

Open tguenneguez opened this issue 2 years ago • 1 comments

The remove function failed if the label aren't order in the alphabetical order. If they aren't, we have a KeyError.

For exemple that failed : observ_thresholds = Gauge('thresholds', 'Seuil', ['host', 'domaine']) observ_thresholds.labels('myserveur','prod').set(5) observ_thresholds.remove('myserveur','prod')

For exemple that is good : observ_thresholds = Gauge('thresholds', 'Seuil', ['host', 'perimeter']) observ_thresholds.labels('myserveur','prod').set(5) observ_thresholds.remove('myserveur','prod')

tguenneguez avatar Sep 14 '23 12:09 tguenneguez

I cannot reproduce this bug. What version are you using? it might be outdated.

LuminatiHD avatar Jan 02 '24 18:01 LuminatiHD