summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorY.Horie <u5.horie@gmail.com>2023-04-26 00:59:26 +0900
committerGitHub <noreply@github.com>2023-04-25 09:59:26 -0600
commit2b04e09fa7830a2d24d863e448ebbdc51d537fbe (patch)
tree5c92666361c7695bfdf34b062b3e2a4cb7161b3c /modules
parent3443a8a056c7fe1a67cbf64f7e7f8acdc3762416 (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.go2
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}
}