[#1614] metrics: Add health metrics

Also, rename metrics structure since it collects not only storage metrics
now.

Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
Pavel Karpy 2022-07-19 18:16:42 +03:00 committed by fyrchik
parent 2455b72844
commit 581a9901c9
4 changed files with 40 additions and 7 deletions

View file

@ -31,7 +31,7 @@ type networkState struct {
nodeInfo atomic.Value // *netmapSDK.NodeInfo
metrics *metrics.StorageMetrics
metrics *metrics.NodeMetrics
}
func newNetworkState() *networkState {