Applies go fmt to repo
This commit is contained in:
parent
48f1275b26
commit
519306b602
|
@ -271,13 +271,13 @@ func (m *MonitorCollector) collect() error {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
// Reset daemon specifc metrics; daemons can leave the cluster
|
// Reset daemon specifc metrics; daemons can leave the cluster
|
||||||
m.TotalKBs.Reset()
|
m.TotalKBs.Reset()
|
||||||
m.UsedKBs.Reset()
|
m.UsedKBs.Reset()
|
||||||
m.AvailKBs.Reset()
|
m.AvailKBs.Reset()
|
||||||
m.PercentAvail.Reset()
|
m.PercentAvail.Reset()
|
||||||
m.Latency.Reset()
|
m.Latency.Reset()
|
||||||
m.ClockSkew.Reset()
|
m.ClockSkew.Reset()
|
||||||
|
|
||||||
for _, healthService := range stats.Health.Health.HealthServices {
|
for _, healthService := range stats.Health.Health.HealthServices {
|
||||||
for _, monstat := range healthService.Mons {
|
for _, monstat := range healthService.Mons {
|
||||||
|
|
|
@ -210,16 +210,16 @@ func (p *PoolUsageCollector) collect() error {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
// Reset pool specfic metrics, pools can be removed
|
// Reset pool specfic metrics, pools can be removed
|
||||||
p.UsedBytes.Reset()
|
p.UsedBytes.Reset()
|
||||||
p.RawUsedBytes.Reset()
|
p.RawUsedBytes.Reset()
|
||||||
p.MaxAvail.Reset()
|
p.MaxAvail.Reset()
|
||||||
p.Objects.Reset()
|
p.Objects.Reset()
|
||||||
p.DirtyObjects.Reset()
|
p.DirtyObjects.Reset()
|
||||||
p.ReadIO.Reset()
|
p.ReadIO.Reset()
|
||||||
p.ReadBytes.Reset()
|
p.ReadBytes.Reset()
|
||||||
p.WriteIO.Reset()
|
p.WriteIO.Reset()
|
||||||
p.WriteBytes.Reset()
|
p.WriteBytes.Reset()
|
||||||
|
|
||||||
for _, pool := range stats.Pools {
|
for _, pool := range stats.Pools {
|
||||||
p.UsedBytes.WithLabelValues(pool.Name).Set(pool.Stats.BytesUsed)
|
p.UsedBytes.WithLabelValues(pool.Name).Set(pool.Stats.BytesUsed)
|
||||||
|
|
Loading…
Reference in New Issue