Skip to content
This repository has been archived by the owner on Jun 24, 2021. It is now read-only.

Commit

Permalink
scripts: update TiDB transaction counter (#1032)
Browse files Browse the repository at this point in the history
Signed-off-by: Shuaipeng Yu <[email protected]>
  • Loading branch information
jackysp authored Nov 15, 2019
1 parent 68dc026 commit 2638dae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/tidb.json
Original file line number Diff line number Diff line change
Expand Up @@ -3371,7 +3371,7 @@
"steppedLine": false,
"targets": [
{
"expr": "sum(rate(tidb_session_transaction_total[1m])) by (type, sql_type)",
"expr": "sum(rate(tidb_session_transaction_duration_seconds_count[1m])) by (type, sql_type)",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "{{type}}-{{sql_type}}",
Expand Down
2 changes: 1 addition & 1 deletion scripts/tidb_summary.json
Original file line number Diff line number Diff line change
Expand Up @@ -1595,7 +1595,7 @@
"steppedLine": false,
"targets": [
{
"expr": "sum(rate(tidb_session_transaction_total{sql_type=\"general\"}[1m])) by (type)",
"expr": "sum(rate(tidb_session_transaction_duration_seconds_count{sql_type=\"general\"}[1m])) by (type)",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "{{type}}",
Expand Down

0 comments on commit 2638dae

Please sign in to comment.