forked from TrueCloudLab/frostfs-node
[#17] Add morph client metrics
Signed-off-by: Alejandro Lopez <a.lopez@yadro.com>
This commit is contained in:
parent
90e9247b69
commit
4887f489a1
11 changed files with 182 additions and 15 deletions
|
@ -29,8 +29,8 @@ func (s *Server) EpochCounter() uint64 {
|
|||
// epoch counter.
|
||||
func (s *Server) SetEpochCounter(val uint64) {
|
||||
s.epochCounter.Store(val)
|
||||
if s.metrics != nil {
|
||||
s.metrics.SetEpoch(val)
|
||||
if s.irMetrics != nil {
|
||||
s.irMetrics.SetEpoch(val)
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -154,8 +154,8 @@ func (s *Server) ResetEpochTimer(h uint32) error {
|
|||
|
||||
func (s *Server) setHealthStatus(hs control.HealthStatus) {
|
||||
s.healthStatus.Store(int32(hs))
|
||||
if s.metrics != nil {
|
||||
s.metrics.SetHealth(int32(hs))
|
||||
if s.irMetrics != nil {
|
||||
s.irMetrics.SetHealth(int32(hs))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue