Skip to content

Commit

Permalink
fix keyspan sink metrics (#249)
Browse files Browse the repository at this point in the history
Signed-off-by: pingyu <[email protected]>

Signed-off-by: pingyu <[email protected]>
  • Loading branch information
pingyu authored Oct 9, 2022
1 parent af3ebdc commit 78e201c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions cdc/metrics/grafana/tikv-cdc.json
Original file line number Diff line number Diff line change
Expand Up @@ -3757,7 +3757,7 @@
"dashLength": 10,
"dashes": false,
"datasource": "${DS_TEST-CLUSTER}",
"description": "The number of events that table sorter outputs to buffer sink per second",
"description": "The number of events that sorter outputs to keyspan sink per second",
"fill": 1,
"fillGradient": 0,
"gridPos": {
Expand Down Expand Up @@ -3797,7 +3797,7 @@
"steppedLine": false,
"targets": [
{
"expr": "sum(rate(tikv_cdc_sink_table_sink_total_rows_count{tidb_cluster=\"$tidb_cluster\", changefeed=~\"$changefeed\", capture=~\"$capture\"}[1m])) by (changefeed, capture)",
"expr": "sum(rate(tikv_cdc_sink_keyspan_sink_total_event_count{tidb_cluster=\"$tidb_cluster\", changefeed=~\"$changefeed\", capture=~\"$capture\"}[1m])) by (changefeed, capture)",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "{{changefeed}}-{{capture}}",
Expand All @@ -3808,7 +3808,7 @@
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Table sink output events/s",
"title": "Keyspan sink output events/s",
"tooltip": {
"shared": true,
"sort": 0,
Expand Down Expand Up @@ -3851,7 +3851,7 @@
"dashLength": 10,
"dashes": false,
"datasource": "${DS_TEST-CLUSTER}",
"description": "The total number of events that table sinks emit",
"description": "The total number of events that keyspan sinks emit",
"fill": 1,
"fillGradient": 0,
"gridPos": {
Expand Down Expand Up @@ -3891,7 +3891,7 @@
"steppedLine": false,
"targets": [
{
"expr": "sum(tikv_cdc_sink_table_sink_total_rows_count{tidb_cluster=\"$tidb_cluster\", changefeed=~\"$changefeed\", capture=~\"$capture\"}) by (changefeed, capture)",
"expr": "sum(tikv_cdc_sink_keyspan_sink_total_event_count{tidb_cluster=\"$tidb_cluster\", changefeed=~\"$changefeed\", capture=~\"$capture\"}) by (changefeed, capture)",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "{{changefeed}}-{{capture}}",
Expand All @@ -3902,7 +3902,7 @@
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Table sink output events",
"title": "Keyspan sink output events",
"tooltip": {
"shared": true,
"sort": 0,
Expand Down

0 comments on commit 78e201c

Please sign in to comment.