reverseproxy: Fix reinitialize upstream healthy metrics (#5498)

Co-authored-by: Dávid Szabó <david.szabo97@gmail.com>
This commit is contained in:
Y.Horie 2023-04-26 00:59:26 +09:00 committed by GitHub
parent 3443a8a056
commit 2b04e09fa7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -39,6 +39,8 @@ func newMetricsUpstreamsHealthyUpdater(handler *Handler) *metricsUpstreamsHealth
initReverseProxyMetrics(handler)
})
reverseProxyMetrics.upstreamsHealthy.Reset()
return &metricsUpstreamsHealthyUpdater{handler}
}