diff --git a/cmd/nodecmd/add_dashboard.go b/cmd/nodecmd/add_dashboard.go index a683e8928..c91f63d0b 100644 --- a/cmd/nodecmd/add_dashboard.go +++ b/cmd/nodecmd/add_dashboard.go @@ -6,6 +6,7 @@ import ( "github.com/ava-labs/avalanche-cli/pkg/ansible" "github.com/ava-labs/avalanche-cli/pkg/cobrautils" "github.com/ava-labs/avalanche-cli/pkg/ssh" + "github.com/ava-labs/avalanche-network-runner/utils" "github.com/spf13/cobra" ) @@ -42,9 +43,9 @@ func addCustomDashboard(clusterName, blockchainName string) error { if err != nil { return err } - _, chainID, err := getDeployedSubnetInfo(clusterName, blockchainName) + chainID, err := utils.VMID(blockchainName) if err != nil { return err } - return ssh.RunSSHUpdateMonitoringDashboards(monitoringHosts[0], app.GetMonitoringDashboardDir()+"/", customGrafanaDashboardPath, chainID) + return ssh.RunSSHUpdateMonitoringDashboards(monitoringHosts[0], app.GetMonitoringDashboardDir()+"/", customGrafanaDashboardPath, chainID.String()) }