From a515a3c735f267d0278904660bb9e91574463725 Mon Sep 17 00:00:00 2001 From: swliao425 <107254153+swliao425@users.noreply.github.com> Date: Thu, 13 Oct 2022 22:52:36 +0800 Subject: [PATCH] chore: sqlx's metric name is different from redis (#2505) --- core/stores/sqlx/metrics.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/stores/sqlx/metrics.go b/core/stores/sqlx/metrics.go index 7c478012..823da2b4 100644 --- a/core/stores/sqlx/metrics.go +++ b/core/stores/sqlx/metrics.go @@ -8,7 +8,7 @@ var ( metricReqDur = metric.NewHistogramVec(&metric.HistogramVecOpts{ Namespace: namespace, Subsystem: "requests", - Name: "durations_ms", + Name: "duration_ms", Help: "mysql client requests duration(ms).", Labels: []string{"command"}, Buckets: []float64{5, 10, 25, 50, 100, 250, 500, 1000, 2500},