From 97c1799ede4ca9c0896ea539fd73d85e0e4e030c Mon Sep 17 00:00:00 2001 From: zhnxin Date: Fri, 22 Mar 2019 15:54:46 +0800 Subject: [PATCH] bugfix: backendServerEjections key map key map error:backendServerEjections --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index e8d82b8..f875386 100644 --- a/main.go +++ b/main.go @@ -248,7 +248,7 @@ func (e *exporter) Collect(ch chan<- prometheus.Metric) { ch <- prometheus.MustNewConstMetric(e.clientEOF, prometheus.CounterValue, pool.ClientEOF, poolName) ch <- prometheus.MustNewConstMetric(e.clientErr, prometheus.CounterValue, pool.ClientErr, poolName) ch <- prometheus.MustNewConstMetric(e.activeClientConnections, prometheus.GaugeValue, pool.ClientConnections, poolName) - ch <- prometheus.MustNewConstMetric(e.backendServerEjections, prometheus.CounterValue, pool.ClientConnections, poolName) + ch <- prometheus.MustNewConstMetric(e.backendServerEjections, prometheus.CounterValue, pool.ServerEjects, poolName) ch <- prometheus.MustNewConstMetric(e.forwardErrors, prometheus.CounterValue, pool.ForwardError, poolName) ch <- prometheus.MustNewConstMetric(e.fragments, prometheus.CounterValue, pool.Fragments, poolName)