Fix several cut/paste errors that caused us to report bad values for domain block writes.
Change-Id: Ifbffa0e976109d7887b8d92f01949f21f5e7764f
This commit is contained in:
parent
8ce9a2f719
commit
b13f6200db
@ -478,17 +478,17 @@ func (c *DomainStatsCollector) collectBlock(uuid string, stat libvirt.DomainStat
|
||||
ch <- prometheus.MustNewConstMetric(
|
||||
c.DomainBlockWrReqs,
|
||||
prometheus.CounterValue,
|
||||
float64(blockStats.RdReqs), uuid, strconv.Itoa(device), blockStats.Path,
|
||||
float64(blockStats.WrReqs), uuid, strconv.Itoa(device), blockStats.Path,
|
||||
)
|
||||
ch <- prometheus.MustNewConstMetric(
|
||||
c.DomainBlockWrBytes,
|
||||
prometheus.CounterValue,
|
||||
float64(blockStats.RdBytes), uuid, strconv.Itoa(device), blockStats.Path,
|
||||
float64(blockStats.WrBytes), uuid, strconv.Itoa(device), blockStats.Path,
|
||||
)
|
||||
ch <- prometheus.MustNewConstMetric(
|
||||
c.DomainBlockWrTimes,
|
||||
prometheus.CounterValue,
|
||||
float64(blockStats.RdTimes), uuid, strconv.Itoa(device), blockStats.Path,
|
||||
float64(blockStats.WrTimes), uuid, strconv.Itoa(device), blockStats.Path,
|
||||
)
|
||||
ch <- prometheus.MustNewConstMetric(
|
||||
c.DomainBlockFlReqs,
|
||||
|
Loading…
x
Reference in New Issue
Block a user