Skip to content

Commit

Permalink
fix some metrics and update code owners (#12299)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangxu19830126 committed Oct 24, 2023
1 parent d65f651 commit 04a8a19
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
1 change: 1 addition & 0 deletions CODEOWNERS
Validating CODEOWNERS rules …
Expand Up @@ -150,6 +150,7 @@
/pkg/util/toml @zhangxu19830126
/pkg/util/trace @xzxiong
/pkg/util/export @xzxiong
/pkg/util/metric/v2 @zhangxu19830126

# pkg/vectorize
/pkg/vectorize @aunjgr
Expand Down
6 changes: 2 additions & 4 deletions pkg/txn/rpc/sender.go
Expand Up @@ -173,10 +173,8 @@ func (s *sender) doSend(ctx context.Context, request txn.TxnRequest) (txn.TxnRes
if err != nil {
return txn.TxnResponse{}, err
}
defer func() {
v2.TxnCNSendCommitDurationHistogram.Observe(time.Since(start).Seconds())
f.Close()
}()
v2.TxnCNSendCommitDurationHistogram.Observe(time.Since(start).Seconds())
defer f.Close()

v, err := f.Get()
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion pkg/util/metric/v2/dashboard/grafana_dashboard_txn.go
Expand Up @@ -76,7 +76,7 @@ func (c *DashboardCreator) initTxnOverviewRow() dashboard.Option {
c.withGraph(
"Commit requests",
3,
"sum(mo_txn_commit_total) by (type)",
"sum(rate(mo_txn_commit_total[$interval])) by (type)",
"{{ type }}"),

c.withGraph(
Expand Down

0 comments on commit 04a8a19

Please sign in to comment.