Skip to content

Commit

Permalink
Add diskio %util sample query
Browse files Browse the repository at this point in the history
  • Loading branch information
danielnelson committed Aug 9, 2017
1 parent 92af42a commit cb04fa1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions plugins/inputs/system/DISK_README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

```
Expand Down

0 comments on commit cb04fa1

Please sign in to comment.