Skip to content

Commit

Permalink
[fix #257] fix changefeed metric show (#258)
Browse files Browse the repository at this point in the history
* fix changefeed metric show

Signed-off-by: zeminzhou <[email protected]>

* KeySpan -> Keyspan

Signed-off-by: zeminzhou <[email protected]>

Signed-off-by: zeminzhou <[email protected]>
  • Loading branch information
zeminzhou authored Oct 12, 2022
1 parent bdd91f6 commit 92c5d1c
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions cdc/metrics/grafana/tikv-cdc.json
Original file line number Diff line number Diff line change
Expand Up @@ -977,7 +977,7 @@
],
"targets": [
{
"expr": "sum(tikv_cdc_processor_num_of_tables{tidb_cluster=\"$tidb_cluster\", changefeed=~\"$changefeed\",capture=~\"$capture\"}) by (capture)",
"expr": "sum(tikv_cdc_processor_num_of_keyspans{tidb_cluster=\"$tidb_cluster\", changefeed=~\"$changefeed\",capture=~\"$capture\"}) by (capture)",
"format": "time_series",
"interval": "",
"intervalFactor": 1,
Expand All @@ -987,7 +987,7 @@
],
"timeFrom": null,
"timeShift": null,
"title": "Changefeed table count",
"title": "Changefeed keyspan count",
"transform": "timeseries_aggregations",
"type": "table"
},
Expand Down Expand Up @@ -1018,7 +1018,7 @@
},
"styles": [
{
"alias": "table",
"alias": "keyspan",
"colorMode": null,
"colors": [
"rgba(245, 54, 54, 0.9)",
Expand Down Expand Up @@ -1100,7 +1100,7 @@
},
"styles": [
{
"alias": "table",
"alias": "keyspan",
"colorMode": null,
"colors": [
"rgba(245, 54, 54, 0.9)",
Expand Down Expand Up @@ -1152,7 +1152,7 @@
],
"timeFrom": null,
"timeShift": null,
"title": "Table resolved ts",
"title": "Keyspan resolved ts",
"transform": "timeseries_aggregations",
"type": "table"
},
Expand All @@ -1164,7 +1164,7 @@
}
],
"datasource": "${DS_TEST-CLUSTER}",
"description": "The number of replicated tables maintained in owner",
"description": "The number of replicated keyspans maintained in owner",
"fontSize": "100%",
"gridPos": {
"h": 5,
Expand Down Expand Up @@ -1207,15 +1207,15 @@
],
"targets": [
{
"expr": "sum(tikv_cdc_owner_maintain_table_num{tidb_cluster=\"$tidb_cluster\", changefeed=~\"$changefeed\",capture=~\"$capture\",type=\"total\"}) by (capture)",
"expr": "sum(tikv_cdc_owner_maintain_keyspan_num{tidb_cluster=\"$tidb_cluster\", changefeed=~\"$changefeed\",capture=~\"$capture\",type=\"total\"}) by (capture)",
"format": "time_series",
"interval": "",
"intervalFactor": 1,
"legendFormat": "{{capture}}-total",
"refId": "A"
},
{
"expr": "sum(tikv_cdc_owner_maintain_table_num{tidb_cluster=\"$tidb_cluster\", changefeed=~\"$changefeed\",capture=~\"$capture\",type=\"wip\"}) by (capture)",
"expr": "sum(tikv_cdc_owner_maintain_keyspan_num{tidb_cluster=\"$tidb_cluster\", changefeed=~\"$changefeed\",capture=~\"$capture\",type=\"wip\"}) by (capture)",
"format": "time_series",
"interval": "",
"intervalFactor": 1,
Expand All @@ -1225,7 +1225,7 @@
],
"timeFrom": null,
"timeShift": null,
"title": "Table count maintained by owner",
"title": "Keyspan count maintained by owner",
"transform": "timeseries_aggregations",
"type": "table"
},
Expand Down

0 comments on commit 92c5d1c

Please sign in to comment.