mirror of
https://github.com/digitalocean/ceph_exporter
synced 2025-02-27 00:30:26 +00:00
Fix units for latency
This commit is contained in:
parent
9be0cd69d3
commit
c9e65abd6f
@ -754,13 +754,13 @@ func (o *OSDCollector) collectOSDPerf() error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
o.CommitLatency.WithLabelValues(osdName, lb.DeviceClass, lb.Host, lb.Rack, lb.Root).Set(commitLatency / 1024)
|
||||
o.CommitLatency.WithLabelValues(osdName, lb.DeviceClass, lb.Host, lb.Rack, lb.Root).Set(commitLatency / 1000)
|
||||
|
||||
applyLatency, err := perfStat.Stats.ApplyLatency.Float64()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
o.ApplyLatency.WithLabelValues(osdName, lb.DeviceClass, lb.Host, lb.Rack, lb.Root).Set(applyLatency / 1024)
|
||||
o.ApplyLatency.WithLabelValues(osdName, lb.DeviceClass, lb.Host, lb.Rack, lb.Root).Set(applyLatency / 1000)
|
||||
}
|
||||
|
||||
return nil
|
||||
|
Loading…
Reference in New Issue
Block a user