From da4f805e61b15481661cdb78ba6b4ae110b36da5 Mon Sep 17 00:00:00 2001 From: Joshua Rich Date: Tue, 7 May 2024 14:25:49 +1000 Subject: [PATCH] fix(linux): :bug: ensure disk read/write count sensors have correct units --- internal/linux/disk/diskRates.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/linux/disk/diskRates.go b/internal/linux/disk/diskRates.go index 4b09457eb..8dd8ca9e7 100644 --- a/internal/linux/disk/diskRates.go +++ b/internal/linux/disk/diskRates.go @@ -121,6 +121,7 @@ func newDiskIOSensor(device diskstats.Device, sensorType linux.SensorTypeValue) Sensor: linux.Sensor{ StateClassValue: types.StateClassTotalIncreasing, SensorTypeValue: sensorType, + UnitsString: diskCountUnits, }, } if device.ID != "total" {