mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-19 18:02:01 +00:00
Merge pull request #91310 from tkashem/reset-pf-metrics
Reset flowcontrol metrics on a DELETE /metrics
This commit is contained in:
commit
b07d99dd35
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user