Add diskio %util sample query

This commit is contained in:
Daniel Nelson 2017-08-09 11:28:27 -07:00
parent 92af42a847
commit cb04fa1e9c
No known key found for this signature in database
GPG Key ID: CAAD59C9444F6155
1 changed files with 7 additions and 0 deletions

View File

@ -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): - If configured to use serial numbers (default: disabled):
- serial (device serial number) - 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: ### Example Output:
``` ```