Browse Source

update promitheus vec

pull/358/head v1.16.3
yedf2 4 years ago
parent
commit
01625b1c64
  1. 6
      dtmsvr/metrics.go

6
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() {

Loading…
Cancel
Save