mirror of
https://github.com/prometheus-community/windows_exporter.git
synced 2026-02-27 07:06:35 +00:00
Update metric type to gauge
Signed-off-by: Tehseen Shahab <tehseen.shahab@gmail.com>
This commit is contained in:
@@ -227,14 +227,14 @@ func (c *LogicalDiskCollector) collect(ctx *ScrapeContext, ch chan<- prometheus.
|
|||||||
|
|
||||||
ch <- prometheus.MustNewConstMetric(
|
ch <- prometheus.MustNewConstMetric(
|
||||||
c.AvgReadQueue,
|
c.AvgReadQueue,
|
||||||
prometheus.CounterValue,
|
prometheus.GaugeValue,
|
||||||
volume.AvgDiskReadQueueLength*ticksToSecondsScaleFactor,
|
volume.AvgDiskReadQueueLength*ticksToSecondsScaleFactor,
|
||||||
volume.Name,
|
volume.Name,
|
||||||
)
|
)
|
||||||
|
|
||||||
ch <- prometheus.MustNewConstMetric(
|
ch <- prometheus.MustNewConstMetric(
|
||||||
c.AvgWriteQueue,
|
c.AvgWriteQueue,
|
||||||
prometheus.CounterValue,
|
prometheus.GaugeValue,
|
||||||
volume.AvgDiskWriteQueueLength*ticksToSecondsScaleFactor,
|
volume.AvgDiskWriteQueueLength*ticksToSecondsScaleFactor,
|
||||||
volume.Name,
|
volume.Name,
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user