CPUΒΆ

The cpu plugin gather metrics on the system CPUs.

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
## If true, compute and report the sum of all non-idle CPU states.
report_active = false
Example Output:
{
    "fields": {
        "usage_guest": 0,
        "usage_guest_nice": 0,
        "usage_idle": 97.17990686197568,
        "usage_iowait": 1.1456628472886896,
        "usage_irq": 0,
        "usage_nice": 0,
        "usage_softirq": 0.08812791136935857,
        "usage_steal": 0,
        "usage_system": 0.6043056778775655,
        "usage_user": 0.9819967269174524
    },
    "name": "cpu",
    "tags": {
        "cpu": "cpu-total",
        "host": "vslems01",
        "id": "vslems01",
        "type": "server"
    },
    "timestamp": 1576004420
}