forked from TrueCloudLab/frostfs-node
[#324] Add replicator metrics
Signed-off-by: Alejandro Lopez <a.lopez@yadro.com>
This commit is contained in:
parent
6055b18362
commit
a6ee7a3087
6 changed files with 86 additions and 0 deletions
|
@ -8,6 +8,7 @@ type NodeMetrics struct {
|
|||
objectServiceMetrics
|
||||
engineMetrics
|
||||
stateMetrics
|
||||
replicatorMetrics
|
||||
epoch metric[prometheus.Gauge]
|
||||
}
|
||||
|
||||
|
@ -21,6 +22,9 @@ func NewNodeMetrics() *NodeMetrics {
|
|||
state := newStateMetrics()
|
||||
state.register()
|
||||
|
||||
replicator := newReplicatorMetrics()
|
||||
replicator.register()
|
||||
|
||||
epoch := newGauge(prometheus.GaugeOpts{
|
||||
Namespace: namespace,
|
||||
Subsystem: innerRingSubsystem,
|
||||
|
@ -33,6 +37,7 @@ func NewNodeMetrics() *NodeMetrics {
|
|||
objectServiceMetrics: objectService,
|
||||
engineMetrics: engine,
|
||||
stateMetrics: state,
|
||||
replicatorMetrics: replicator,
|
||||
epoch: epoch,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue