diff options
author | Y.Horie <u5.horie@gmail.com> | 2023-04-26 00:59:26 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-25 09:59:26 -0600 |
commit | 2b04e09fa7830a2d24d863e448ebbdc51d537fbe (patch) | |
tree | 5c92666361c7695bfdf34b062b3e2a4cb7161b3c /modules | |
parent | 3443a8a056c7fe1a67cbf64f7e7f8acdc3762416 (diff) |
reverseproxy: Fix reinitialize upstream healthy metrics (#5498)
Co-authored-by: Dávid Szabó <david.szabo97@gmail.com>
Diffstat (limited to 'modules')
-rw-r--r-- | modules/caddyhttp/reverseproxy/metrics.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/caddyhttp/reverseproxy/metrics.go b/modules/caddyhttp/reverseproxy/metrics.go index 4272bc4..d3c8ee0 100644 --- a/modules/caddyhttp/reverseproxy/metrics.go +++ b/modules/caddyhttp/reverseproxy/metrics.go @@ -39,6 +39,8 @@ func newMetricsUpstreamsHealthyUpdater(handler *Handler) *metricsUpstreamsHealth initReverseProxyMetrics(handler) }) + reverseProxyMetrics.upstreamsHealthy.Reset() + return &metricsUpstreamsHealthyUpdater{handler} } |