remove prometheus dos via protocol.

Clean up unused labely to keep prometheus values down
This commit is contained in:
Marcel Märtens 2021-03-20 23:50:38 +01:00
parent 1afe3b7de5
commit 18aefa8dbf

View File

@ -366,6 +366,11 @@ impl Drop for ProtocolMetricCache {
let _ = m.rmsg_ob.remove_label_values(&[&cid, &s, &finished]);
let _ = m.rmsg_ob.remove_label_values(&[&cid, &s, &dropped]);
}
let _ = m.ping.remove_label_values(&[&cid]);
let _ = m.sdata_frames_t.remove_label_values(&[&cid]);
let _ = m.sdata_frames_b.remove_label_values(&[&cid]);
let _ = m.rdata_frames_t.remove_label_values(&[&cid]);
let _ = m.rdata_frames_b.remove_label_values(&[&cid]);
}
}