forked from TrueCloudLab/frostfs-node
[#164] metrics: Fill local registry explicitly
Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
This commit is contained in:
parent
59822f7fb4
commit
015d62425b
7 changed files with 72 additions and 32 deletions
|
@ -27,7 +27,7 @@ func NewNodeMetrics() *NodeMetrics {
|
|||
Name: "epoch",
|
||||
Help: "Current epoch as seen by inner-ring node.",
|
||||
})
|
||||
prometheus.MustRegister(epoch)
|
||||
mustRegister(epoch)
|
||||
|
||||
return &NodeMetrics{
|
||||
objectServiceMetrics: objectService,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue