From 7cc4ca23418b2ccb8caa96dc1f10125d7b6a0e8d Mon Sep 17 00:00:00 2001 From: Rajaseelan Ganeswaran Date: Fri, 7 Apr 2017 05:44:02 +0800 Subject: [PATCH] Add sample config stanza for CPU (#2620) --- plugins/inputs/system/CPU_README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/plugins/inputs/system/CPU_README.md b/plugins/inputs/system/CPU_README.md index 26eb7ffbe..01d57855b 100644 --- a/plugins/inputs/system/CPU_README.md +++ b/plugins/inputs/system/CPU_README.md @@ -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