From 01625b1c649d83360c79478abe41f60dd7ccdc95 Mon Sep 17 00:00:00 2001 From: yedf2 <120050102@qq.com> Date: Thu, 29 Sep 2022 14:37:37 +0800 Subject: [PATCH] update promitheus vec --- dtmsvr/metrics.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dtmsvr/metrics.go b/dtmsvr/metrics.go index 621eee4..50ee9e9 100644 --- a/dtmsvr/metrics.go +++ b/dtmsvr/metrics.go @@ -40,19 +40,19 @@ var ( Name: "dtm_transaction_process_total", Help: "All transactions processed by dtm", }, - []string{"model", "gid", "status"}) + []string{"model", "status"}) transactionHandledTime = promauto.NewHistogramVec(prometheus.HistogramOpts{ Name: "dtm_transaction_handled_duration", Help: "Histogram of handling latency of the transaction that handled by the server.", }, - []string{"model", "gid"}) + []string{"model"}) branchTotal = promauto.NewCounterVec(prometheus.CounterOpts{ Name: "dtm_branch_process_total", Help: "All branches processed by dtm", }, - []string{"model", "gid", "branchid", "branchtype", "status"}) + []string{"model", "branchid", "branchtype", "status"}) ) func setServerInfoMetrics() {