mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-25 13:47:19 +00:00
network: drop deprecated serv_node_version metric
A part of #3454. Signed-off-by: Roman Khimov <roman@nspcc.ru>
This commit is contained in:
parent
125f757988
commit
632092b2cd
3 changed files with 0 additions and 27 deletions
|
@ -25,15 +25,6 @@ APIs/commands/configurations will be removed and here is a list of scheduled
|
|||
breaking changes. Consider changing your code/scripts/configurations if you're
|
||||
using anything mentioned here.
|
||||
|
||||
## `serv_node_version` Prometheus gauge metric
|
||||
|
||||
This metric is replaced by the new `neogo_version` and `server_id` Prometheus gauge
|
||||
metrics with proper version formatting. `neogo_version` contains NeoGo version
|
||||
hidden under `version` label and `server_id` contains network server ID hidden
|
||||
under `server_id` label.
|
||||
|
||||
Removal of `serv_node_version` is scheduled for Jun-Jul 2024 (~0.107.0 release).
|
||||
|
||||
## RPC error codes returned by old versions and C#-nodes
|
||||
|
||||
NeoGo retains certain deprecated error codes: `neorpc.ErrCompatGeneric`,
|
||||
|
|
|
@ -25,16 +25,6 @@ var (
|
|||
},
|
||||
)
|
||||
|
||||
// Deprecated: please, use neogoVersion and serverID instead.
|
||||
servAndNodeVersion = prometheus.NewGaugeVec(
|
||||
prometheus.GaugeOpts{
|
||||
Help: "Server and Node versions",
|
||||
Name: "serv_node_version",
|
||||
Namespace: "neogo",
|
||||
},
|
||||
[]string{"description", "value"},
|
||||
)
|
||||
|
||||
neogoVersion = prometheus.NewGaugeVec(
|
||||
prometheus.GaugeOpts{
|
||||
Help: "NeoGo version",
|
||||
|
@ -82,7 +72,6 @@ func init() {
|
|||
prometheus.MustRegister(
|
||||
estimatedNetworkSize,
|
||||
peersConnected,
|
||||
servAndNodeVersion,
|
||||
neogoVersion,
|
||||
serverID,
|
||||
poolCount,
|
||||
|
@ -122,12 +111,6 @@ func updatePeersConnectedMetric(pConnected int) {
|
|||
peersConnected.Set(float64(pConnected))
|
||||
}
|
||||
|
||||
// Deprecated: please, use setNeoGoVersion and setSeverID instead.
|
||||
func setServerAndNodeVersions(nodeVer string, serverID string) {
|
||||
servAndNodeVersion.WithLabelValues("Node version: ", nodeVer).Add(0)
|
||||
servAndNodeVersion.WithLabelValues("Server id: ", serverID).Add(0)
|
||||
}
|
||||
|
||||
func setNeoGoVersion(nodeVer string) {
|
||||
neogoVersion.WithLabelValues(nodeVer).Add(1)
|
||||
}
|
||||
|
|
|
@ -318,7 +318,6 @@ func (s *Server) Start() {
|
|||
for _, tr := range s.transports {
|
||||
go tr.Accept()
|
||||
}
|
||||
setServerAndNodeVersions(s.UserAgent, strconv.FormatUint(uint64(s.id), 10))
|
||||
setNeoGoVersion(config.Version)
|
||||
setSeverID(strconv.FormatUint(uint64(s.id), 10))
|
||||
go s.run()
|
||||
|
|
Loading…
Reference in a new issue