cmd/geth: rename the protocols field in the metrics gague (#28102)
This commit is contained in:
parent
8b6cf128af
commit
eb7438997b
@ -185,10 +185,10 @@ func makeFullNode(ctx *cli.Context) (*node.Node, ethapi.Backend) {
|
|||||||
protos = append(protos, fmt.Sprintf("%v/%d", p.Name, p.Version))
|
protos = append(protos, fmt.Sprintf("%v/%d", p.Name, p.Version))
|
||||||
}
|
}
|
||||||
metrics.NewRegisteredGaugeInfo("geth/info", nil).Update(metrics.GaugeInfoValue{
|
metrics.NewRegisteredGaugeInfo("geth/info", nil).Update(metrics.GaugeInfoValue{
|
||||||
"arch": runtime.GOARCH,
|
"arch": runtime.GOARCH,
|
||||||
"os": runtime.GOOS,
|
"os": runtime.GOOS,
|
||||||
"version": cfg.Node.Version,
|
"version": cfg.Node.Version,
|
||||||
"eth_protocols": strings.Join(protos, ","),
|
"protocols": strings.Join(protos, ","),
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user