Add sample config stanza for CPU (#2620)

This commit is contained in:
Rajaseelan Ganeswaran 2017-04-07 05:44:02 +08:00 committed by Daniel Nelson
parent 92fa20cef2
commit 7cc4ca2341
1 changed files with 12 additions and 0 deletions

View File

@ -4,6 +4,18 @@
- **totalcpu** boolean: If true, include `cpu-total` data
- **percpu** boolean: If true, include data on a per-cpu basis `cpu0, cpu1, etc.`
##### Configuration:
```
[[inputs.cpu]]
## Whether to report per-cpu stats or not
percpu = true
## Whether to report total system cpu stats or not
totalcpu = true
## If true, collect raw CPU time metrics.
collect_cpu_time = false
```
#### Description
The CPU plugin collects standard CPU metrics as defined in `man proc`. All