Windows disk activity over WinRM (win_disk_io)
Reads the raw counters of one logical disk (a volume) or one physical disk over WinRM (Win32_PerfRawData_PerfDisk_LogicalDisk or Win32_PerfRawData_PerfDisk_PhysicalDisk) and reports read and write throughput, operations per second, the average queue length and how busy the disk was. It is about speed and load; for how full a volume is, use win_disk. Every value is the average between the previous poll and this one.
Transport. Under a Windows probe the device can be set to read this sensor over native WMI instead of WinRM; the query and the result are the same. The target is then set up as in the WMI setup guide instead.
What it looks like

The sensor's page after a few polls of the C: volume of a Windows Server domain controller reached over WinRM. In the dark theme: the sensor's page. The form for adding it, with its parameters filled in: light, dark.
Channels
| Key | Name | Unit | Default limits |
|---|---|---|---|
read_bytes_ps | Read throughput | B/s | none |
write_bytes_ps | Write throughput | B/s | none |
reads_ps | Reads | ops/s | none |
writes_ps | Writes | ops/s | none |
queue_length | Average queue length | warning above 5 | |
busy_pct | Busy time | % | warning above 90 |
Parameters
| Parameter | Default | Meaning |
|---|---|---|
disk | required | The disk's instance name in the counters. For a logical disk: a drive letter such as C: (c: and C:\ mean the same), or HarddiskVolume3 for a volume without a letter. For a physical disk: the disk number and the letters on it, such as 0 C: or 1 D: E:. _Total is every disk together. Case does not matter. |
class | logical | logical or physical. A volume is a logical disk; a physical disk is what the hardware presents, and can hold several volumes. |
port | 5985, or 5986 with https | TCP port of the WinRM listener. |
https | false | Use the HTTPS listener instead of HTTP with message encryption. |
accept_self_signed | false | Accept an HTTPS certificate that cannot be verified. The credential has the same switch; either one is enough. |
Suggested interval: 60 seconds. Credential: Windows. Discovery does not add it: a disk's throughput is only useful to people who watch it, and one more sensor per volume on every Windows host is a cost most do not need. Add it to the disks you care about.
How the values are worked out
Throughput and operations are counters that only grow, so each is the difference between two polls divided by the time between them on the target's clock. Two are timers counted in 100 ns units:
- Average queue length is the growth of the
AvgDiskQueueLengthcounter over the elapsed time: the number of requests waiting or in service, averaged over the interval. - Busy time is 100 minus the idle share, from
PercentIdleTime. This is the figure Task Manager shows as active time.PercentDiskTimeis not used: it is the queue length times 100 and passes 100 when the queue is deeper than one.
The first poll after the sensor is created only takes the starting reading, and its values are unknown (first reading of X taken; rates are known from the next poll). They are unknown again for the interval in which a counter went backwards (a volume dismounted and mounted, a disk taken offline and online), the machine restarted (told by the target's uptime clock starting again), or a 32-bit counter (the operation counts) wrapped. A wrap looks the same as a reset and is not guessed at.
On the target
WinRM enabled and an account set up as in the WinRM setup guide. Reading performance counters needs membership of Performance Monitor Users as well as the WMI rights. The disk counters must be on, which they are by default on every supported Windows version (diskperf once turned them off on very old ones).
Failures
The WinRM failures every Windows sensor shares are listed in the setup guide. Specific to this sensor:
| Message | Meaning |
|---|---|
the logical disk X does not exist on the target (it lists ...) or the physical disk ... (kind config) | The counters have no disk of that name and class. A volume was removed, a letter changed, or a physical disk was renumbered. The message lists up to ten names the target has, which also shows when a volume was meant and the class is wrong. |
the counters of X carry no timestamp (kind protocol) | The class answered without the time stamps a rate needs. The counter library may be damaged (lodctr /R rebuilds it). |
the WMI class does not exist (kind config) | The target does not have the disk counter class. |