Skip to content

Commit

Permalink
metric: fix wrong total-query-counter label (#25402) (#25446)
Browse files Browse the repository at this point in the history
  • Loading branch information
ti-srebot authored Jun 16, 2021
1 parent 790c8e9 commit 87b7e13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -939,7 +939,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()
}
Expand Down

0 comments on commit 87b7e13

Please sign in to comment.