mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-20 14:59:26 +00:00
cmd/geth: rename the protocols field in the metrics gague (#28102)
This commit is contained in:
parent
8b6cf128af
commit
eb7438997b
1 changed files with 4 additions and 4 deletions
|
|
@ -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 a new issue