mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-19 21:31:37 +00:00
updated MONITORCMD.GO
This commit is contained in:
parent
840fcb171c
commit
5e07884497
1 changed files with 4 additions and 4 deletions
|
|
@ -55,7 +55,7 @@ var (
|
|||
ArgsUsage: " ",
|
||||
Category: "MONITOR COMMANDS",
|
||||
Description: `
|
||||
The Geth monitor is a tool to collect and visualize various internal metrics
|
||||
The XDC monitor is a tool to collect and visualize various internal metrics
|
||||
gathered by the node, supporting different chart types as well as the capacity
|
||||
to display multiple metrics simultaneously.
|
||||
`,
|
||||
|
|
@ -76,7 +76,7 @@ func monitor(ctx *cli.Context) error {
|
|||
// Attach to an Ethereum node over IPC or RPC
|
||||
endpoint := ctx.String(monitorCommandAttachFlag.Name)
|
||||
if client, err = dialRPC(endpoint); err != nil {
|
||||
utils.Fatalf("Unable to attach to geth node: %v", err)
|
||||
utils.Fatalf("Unable to attach to XDC node: %v", err)
|
||||
}
|
||||
defer client.Close()
|
||||
|
||||
|
|
@ -93,7 +93,7 @@ func monitor(ctx *cli.Context) error {
|
|||
if len(list) > 0 {
|
||||
utils.Fatalf("No metrics specified.\n\nAvailable:\n - %s", strings.Join(list, "\n - "))
|
||||
} else {
|
||||
utils.Fatalf("No metrics collected by geth (--%s).\n", utils.MetricsEnabledFlag.Name)
|
||||
utils.Fatalf("No metrics collected by XDC (--%s).\n", utils.MetricsEnabledFlag.Name)
|
||||
}
|
||||
}
|
||||
sort.Strings(monitored)
|
||||
|
|
@ -158,7 +158,7 @@ func monitor(ctx *cli.Context) error {
|
|||
return nil
|
||||
}
|
||||
|
||||
// retrieveMetrics contacts the attached geth node and retrieves the entire set
|
||||
// retrieveMetrics contacts the attached XDC node and retrieves the entire set
|
||||
// of collected system metrics.
|
||||
func retrieveMetrics(client *rpc.Client) (map[string]interface{}, error) {
|
||||
var metrics map[string]interface{}
|
||||
|
|
|
|||
Loading…
Reference in a new issue