Skip to content

Commit 6fc6d50

Browse files
committed
in_windows_exporter_metrics: Add avarage queued metrics for logical_disk
Signed-off-by: Hiroshi Hatake <[email protected]>
1 parent 1d624ef commit 6fc6d50

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

plugins/in_windows_exporter_metrics/we_logical_disk.c

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,14 @@ struct we_perflib_metric_source logical_disk_metric_sources[] = {
8989
"Avg. Disk sec/Transfer",
9090
NULL),
9191

92+
WE_PERFLIB_METRIC_SOURCE("avg_read_requests_queued",
93+
"Avg. Disk Read Queue Length",
94+
NULL),
95+
96+
WE_PERFLIB_METRIC_SOURCE("avg_write_requests_queued",
97+
"Avg. Disk Write Queue Length",
98+
NULL),
99+
92100
WE_PERFLIB_TERMINATOR_SOURCE()
93101
};
94102

@@ -149,6 +157,14 @@ struct we_perflib_metric_spec logical_disk_metric_specs[] = {
149157
"Average latency, in seconds, to transfer operations on the disk",
150158
"volume"),
151159

160+
WE_PERFLIB_GAUGE_SPEC("avg_read_requests_queued",
161+
"Average number of read requests that were queued for the selected disk during the sample interval",
162+
"volume"),
163+
164+
WE_PERFLIB_GAUGE_SPEC("avg_write_requests_queued",
165+
"Average number of write requests that were queued for the selected disk during the sample interval",
166+
"volume"),
167+
152168
WE_PERFLIB_TERMINATOR_SPEC()
153169
};
154170

0 commit comments

Comments
 (0)