From ca47c005eef7c2b6f8680176196e1cec6bba918b Mon Sep 17 00:00:00 2001 From: lysu Date: Tue, 15 Jun 2021 19:44:37 +0800 Subject: [PATCH] cherry pick #25402 to release-5.0 Signed-off-by: ti-srebot --- server/conn.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/conn.go b/server/conn.go index 7a674c57532dd..156e331e6de51 100644 --- a/server/conn.go +++ b/server/conn.go @@ -882,7 +882,7 @@ func (cc *clientConn) addMetrics(cmd byte, startTime time.Time, err error) { } else { label := strconv.Itoa(int(cmd)) if err != nil { - metrics.QueryTotalCounter.WithLabelValues(label, "ERROR").Inc() + metrics.QueryTotalCounter.WithLabelValues(label, "Error").Inc() } else { metrics.QueryTotalCounter.WithLabelValues(label, "OK").Inc() }