[#373] metrics: Add FSTree metrics

Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
Dmitrii Stepanov 2023-06-07 17:06:02 +03:00
parent d8ecc69d00
commit 16a142cd0c
8 changed files with 236 additions and 6 deletions

View file

@ -14,6 +14,7 @@ type NodeMetrics struct {
objectService *objectServiceMetrics
treeService *treeServiceMetrics
epoch prometheus.Gauge
fstree *fstreeMetrics
}
func NewNodeMetrics() *NodeMetrics {
@ -41,6 +42,7 @@ func NewNodeMetrics() *NodeMetrics {
replicator: replicator,
treeService: treeService,
epoch: epoch,
fstree: newFSTreeMetrics(),
}
}
@ -68,3 +70,7 @@ func (m *NodeMetrics) Engine() EngineMetrics {
func (m *NodeMetrics) State() StateMetrics {
return m.state
}
func (m *NodeMetrics) FSTree() FSTreeMetrics {
return m.fstree
}