[#373] metrics: Add FSTree metrics
Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
parent
d8ecc69d00
commit
16a142cd0c
8 changed files with 236 additions and 6 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue