mirror of
https://github.com/prometheus/node_exporter.git
synced 2024-12-27 14:39:53 -08:00
devstat: Fix wrong labels for 'other' metrics.
This commit is contained in:
parent
c5669f0a1a
commit
71abff14b1
|
@ -217,11 +217,11 @@ func (c *devstatCollector) Update(ch chan<- prometheus.Metric) (err error) {
|
|||
c.bytes.With(prometheus.Labels{"device": device, "type": "read"}).Set(float64(stats.bytes.read))
|
||||
c.bytes.With(prometheus.Labels{"device": device, "type": "write"}).Set(float64(stats.bytes.write))
|
||||
c.bytes.With(prometheus.Labels{"device": device, "type": "free"}).Set(float64(stats.bytes.free))
|
||||
c.transfers.With(prometheus.Labels{"device": device, "type": "read"}).Set(float64(stats.transfers.other))
|
||||
c.transfers.With(prometheus.Labels{"device": device, "type": "other"}).Set(float64(stats.transfers.other))
|
||||
c.transfers.With(prometheus.Labels{"device": device, "type": "read"}).Set(float64(stats.transfers.read))
|
||||
c.transfers.With(prometheus.Labels{"device": device, "type": "write"}).Set(float64(stats.transfers.write))
|
||||
c.transfers.With(prometheus.Labels{"device": device, "type": "free"}).Set(float64(stats.transfers.free))
|
||||
c.duration.With(prometheus.Labels{"device": device, "type": "read"}).Set(float64(stats.duration.other))
|
||||
c.duration.With(prometheus.Labels{"device": device, "type": "other"}).Set(float64(stats.duration.other))
|
||||
c.duration.With(prometheus.Labels{"device": device, "type": "read"}).Set(float64(stats.duration.read))
|
||||
c.duration.With(prometheus.Labels{"device": device, "type": "write"}).Set(float64(stats.duration.write))
|
||||
c.duration.With(prometheus.Labels{"device": device, "type": "free"}).Set(float64(stats.duration.free))
|
||||
|
|
Loading…
Reference in a new issue