Skip to content

Commit

Permalink
fix(linux): 🐛 ensure disk read/write count sensors have correct units
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuar committed May 7, 2024
1 parent b0e5dc8 commit da4f805
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/linux/disk/diskRates.go
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand Down

0 comments on commit da4f805

Please sign in to comment.