Merge branch 'xMAC94x/prometheus_improvements' into 'master'

remove prometheus dos via protocol.

See merge request veloren/veloren!1955
This commit is contained in:
Marcel 2021-03-21 18:34:00 +00:00
commit d088694281

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]);
}
}