From d88a1e58d992f234fa9f62671ce6a14fc0032b59 Mon Sep 17 00:00:00 2001 From: csuzhangxc Date: Tue, 16 Sep 2025 11:28:50 +0800 Subject: [PATCH 1/2] fix: TiCDC new arch dashboard file is missing --- pkg/operator/dashboards.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/operator/dashboards.go b/pkg/operator/dashboards.go index d49ed5d6..4f409e14 100644 --- a/pkg/operator/dashboards.go +++ b/pkg/operator/dashboards.go @@ -38,6 +38,7 @@ var ( "tiflash_proxy_summary.json": "Test-Cluster-TiFlash-Proxy-Summary", "ticdc.json": "Test-Cluster-TiCDC", "TiCDC-Monitor-Summary.json": "Test-Cluster-TiCDC-Summary", + "ticdc_new_arch.json": "Test-Cluster-TiCDC-New-Arch", "tikv-cdc.json": "Test-Cluster-TiKV-CDC", "tiflash_proxy_details.json": "Test-Cluster-TiFlash-Proxy-Details", "DM-Monitor-Standard.json": "Test-Cluster-DM-Standard", From c1056cca47b17e407dc49c2a859b664baa016e51 Mon Sep 17 00:00:00 2001 From: csuzhangxc Date: Tue, 16 Sep 2025 12:10:18 +0800 Subject: [PATCH 2/2] trigger --- pkg/operator/dashboards.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/operator/dashboards.go b/pkg/operator/dashboards.go index 4f409e14..a6345d7f 100644 --- a/pkg/operator/dashboards.go +++ b/pkg/operator/dashboards.go @@ -1,7 +1,6 @@ package operator import ( - "errors" "fmt" "strings" @@ -50,7 +49,7 @@ var ( func WriteDashboard(dir string, body string, name string) error { title, exist := dashboards[name] if !exist { - return errors.New(fmt.Sprintf("%s dashboard is not found in operator", name)) + return fmt.Errorf("%s dashboard is not found in operator", name) } common.WriteFile(dir, convertDashboardFileName(name), filterDashboard(body, name, title))