We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 77b35d0 + 0c48254 commit c650ae9Copy full SHA for c650ae9
prometheus/vec.go
@@ -276,7 +276,9 @@ func (m *metricMap) deleteByHashWithLabelValues(
276
}
277
278
if len(metrics) > 1 {
279
+ old := metrics
280
m.metrics[h] = append(metrics[:i], metrics[i+1:]...)
281
+ old[len(old)-1] = metricWithLabelValues{}
282
} else {
283
delete(m.metrics, h)
284
@@ -302,7 +304,9 @@ func (m *metricMap) deleteByHashWithLabels(
302
304
303
305
306
307
308
309
310
311
312
0 commit comments