From 78e201c84a62f450e2f0cd7dab2a3026763d37e2 Mon Sep 17 00:00:00 2001 From: Ping Yu Date: Sun, 9 Oct 2022 18:35:47 +0800 Subject: [PATCH] fix keyspan sink metrics (#249) Signed-off-by: pingyu Signed-off-by: pingyu --- cdc/metrics/grafana/tikv-cdc.json | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/cdc/metrics/grafana/tikv-cdc.json b/cdc/metrics/grafana/tikv-cdc.json index 8f6134b6..084cc8c5 100644 --- a/cdc/metrics/grafana/tikv-cdc.json +++ b/cdc/metrics/grafana/tikv-cdc.json @@ -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": { @@ -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}}", @@ -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, @@ -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": { @@ -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}}", @@ -3902,7 +3902,7 @@ "timeFrom": null, "timeRegions": [], "timeShift": null, - "title": "Table sink output events", + "title": "Keyspan sink output events", "tooltip": { "shared": true, "sort": 0,