Skip to content

Commit 5881a86

Browse files
authored
fix: TiCDC new arch dashboard file is missing (#895)
* fix: TiCDC new arch dashboard file is missing * trigger
1 parent 71d0c7b commit 5881a86

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pkg/operator/dashboards.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package operator
22

33
import (
4-
"errors"
54
"fmt"
65
"strings"
76

@@ -38,6 +37,7 @@ var (
3837
"tiflash_proxy_summary.json": "Test-Cluster-TiFlash-Proxy-Summary",
3938
"ticdc.json": "Test-Cluster-TiCDC",
4039
"TiCDC-Monitor-Summary.json": "Test-Cluster-TiCDC-Summary",
40+
"ticdc_new_arch.json": "Test-Cluster-TiCDC-New-Arch",
4141
"tikv-cdc.json": "Test-Cluster-TiKV-CDC",
4242
"tiflash_proxy_details.json": "Test-Cluster-TiFlash-Proxy-Details",
4343
"DM-Monitor-Standard.json": "Test-Cluster-DM-Standard",
@@ -49,7 +49,7 @@ var (
4949
func WriteDashboard(dir string, body string, name string) error {
5050
title, exist := dashboards[name]
5151
if !exist {
52-
return errors.New(fmt.Sprintf("%s dashboard is not found in operator", name))
52+
return fmt.Errorf("%s dashboard is not found in operator", name)
5353
}
5454

5555
common.WriteFile(dir, convertDashboardFileName(name), filterDashboard(body, name, title))

0 commit comments

Comments
 (0)