From 6f0ff514c97c61533b5b40f888a285d3e729f24a Mon Sep 17 00:00:00 2001 From: Daniel Nelson Date: Wed, 9 Aug 2017 11:28:27 -0700 Subject: [PATCH] Add diskio %util sample query --- plugins/inputs/system/DISK_README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/plugins/inputs/system/DISK_README.md b/plugins/inputs/system/DISK_README.md index bf5f1d973..a05a9f7a2 100644 --- a/plugins/inputs/system/DISK_README.md +++ b/plugins/inputs/system/DISK_README.md @@ -92,6 +92,13 @@ Data collection is based on github.com/shirou/gopsutil. This package handles pla - If configured to use serial numbers (default: disabled): - serial (device serial number) +### Sample Queries: + +Calculate percent IO utilization per disk and host: +``` +SELECT derivative(last("io_time"),1ms) FROM "diskio" WHERE time > now() - 30m GROUP BY "host","name",time(60s) +``` + ### Example Output: ```