System cpu metricset

edit

The System cpu metricset provides CPU statistics.

This metricset is available on:

  • FreeBSD
  • Linux
  • macOS
  • OpenBSD
  • Windows

Configuration

edit
cpu.metrics

This option controls what CPU metrics are reported. The value is a list and three metric types are supported - percentages, normalized_percentages, and ticks. The default value is cpu.metrics: [percentages].

metricbeat.modules:
- module: system
  metricsets: [cpu]
  cpu.metrics: [percentages, normalized_percentages, ticks]

This is a default metricset. If the host module is unconfigured, this metricset is enabled by default.

Fields

edit

For a description of each field in the metricset, see the exported fields section.

Here is an example document generated by this metricset:

{
    "@timestamp": "2017-10-12T08:05:34.853Z",
    "event": {
        "dataset": "system.cpu",
        "duration": 115000,
        "module": "system"
    },
    "host": {
        "cpu": {
            "pct": 0.1629
        }
    },
    "metricset": {
        "name": "cpu",
        "period": 10000
    },
    "service": {
        "type": "system"
    },
    "system": {
        "cpu": {
            "cores": 4,
            "idle": {
                "norm": {
                    "pct": 0.8371
                },
                "pct": 3.3484,
                "ticks": 806327077
            },
            "iowait": {
                "norm": {
                    "pct": 0
                },
                "pct": 0,
                "ticks": 312229
            },
            "irq": {
                "norm": {
                    "pct": 0.0125
                },
                "pct": 0.0501,
                "ticks": 6548016
            },
            "nice": {
                "norm": {
                    "pct": 0
                },
                "pct": 0,
                "ticks": 517231
            },
            "softirq": {
                "norm": {
                    "pct": 0.0025
                },
                "pct": 0.01,
                "ticks": 1561223
            },
            "steal": {
                "norm": {
                    "pct": 0
                },
                "pct": 0,
                "ticks": 156646
            },
            "system": {
                "norm": {
                    "pct": 0.0551
                },
                "pct": 0.2206,
                "ticks": 31037256
            },
            "total": {
                "norm": {
                    "pct": 0.1629
                },
                "pct": 0.6516
            },
            "user": {
                "norm": {
                    "pct": 0.0927
                },
                "pct": 0.3709,
                "ticks": 139619320
            }
        }
    }
}