client_python
client_python copied to clipboard
Bug in remove function
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')
I cannot reproduce this bug. What version are you using? it might be outdated.