Skip to content

Commit

Permalink
use vm id
Browse files Browse the repository at this point in the history
  • Loading branch information
sukantoraymond committed Nov 14, 2024
1 parent d2a9fe7 commit 18e5259
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cmd/nodecmd/add_dashboard.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down Expand Up @@ -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())
}

0 comments on commit 18e5259

Please sign in to comment.