Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pkg/operator/dashboards.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package operator

import (
"errors"
"fmt"
"strings"

Expand Down Expand Up @@ -38,6 +37,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",
Expand All @@ -49,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))
Expand Down