[#324] Add replicator metrics
All checks were successful
ci/woodpecker/push/pre-commit Pipeline was successful

Signed-off-by: Alejandro Lopez <a.lopez@yadro.com>
This commit is contained in:
Alejandro Lopez 2023-05-12 11:44:21 +03:00 committed by Evgenii Stratonikov
parent 6055b18362
commit a6ee7a3087
6 changed files with 86 additions and 0 deletions

View file

@ -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,
}
}