Reset flow control metrics on /metrcis DELETE

This commit is contained in:
Abu Kashem 2020-05-20 17:25:05 -04:00
parent eb34058777
commit 01c5818b63
No known key found for this signature in database
GPG Key ID: 76146D1A14E658ED

View File

@ -48,6 +48,8 @@ func (m MetricsWithReset) Install(c *mux.PathRecorderMux) {
if req.Method == "DELETE" {
apimetrics.Reset()
etcd3metrics.Reset()
flowcontrolmetrics.Reset()
io.WriteString(w, "metrics reset\n")
return
}