[#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:
parent
2455b72844
commit
581a9901c9
4 changed files with 40 additions and 7 deletions
|
@ -105,7 +105,7 @@ type cfg struct {
|
|||
|
||||
cfgNotifications cfgNotifications
|
||||
|
||||
metricsCollector *metrics.StorageMetrics
|
||||
metricsCollector *metrics.NodeMetrics
|
||||
|
||||
workers []worker
|
||||
|
||||
|
@ -326,7 +326,7 @@ func initCfg(path string) *cfg {
|
|||
user.IDFromKey(&c.ownerIDFromKey, key.PrivateKey.PublicKey)
|
||||
|
||||
if metricsconfig.Enabled(c.appCfg) {
|
||||
c.metricsCollector = metrics.NewStorageMetrics()
|
||||
c.metricsCollector = metrics.NewNodeMetrics()
|
||||
netState.metrics = c.metricsCollector
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue