系统核心metricset

编辑

系统core metricset 提供每个 CPU 核心的使用统计信息。

此 metricset 可用于以下系统:

  • FreeBSD
  • Linux
  • macOS
  • OpenBSD
  • Windows

配置

编辑
core.metrics

此选项控制为每个 CPU 核心报告哪些指标。其值为一个列表,支持两种指标类型 - percentagesticks。默认值为 core.metrics: [percentages]

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

字段

有关此 metricset 中每个字段的描述,请参阅已导出字段 部分。

这是一个此 metricset 生成的示例文档

{
    "@timestamp": "2017-10-12T08:05:34.853Z",
    "event": {
        "dataset": "system.core",
        "duration": 115000,
        "module": "system"
    },
    "metricset": {
        "name": "core",
        "period": 10000
    },
    "service": {
        "type": "system"
    },
    "system": {
        "core": {
            "id": 0,
            "idle": {
                "pct": 0.9638,
                "ticks": 240932600
            },
            "iowait": {
                "pct": 0,
                "ticks": 10534
            },
            "irq": {
                "pct": 0.002,
                "ticks": 379774
            },
            "nice": {
                "pct": 0.002,
                "ticks": 70354
            },
            "softirq": {
                "pct": 0.002,
                "ticks": 498856
            },
            "steal": {
                "pct": 0,
                "ticks": 0
            },
            "system": {
                "pct": 0.0201,
                "ticks": 4072735
            },
            "total": {
                "pct": 0.0362
            },
            "user": {
                "pct": 0.0101,
                "ticks": 7020807
            }
            "model_number": "165",
            "model_name": "Intel(R) Core(TM) i9-10885H CPU @ 2.40GHz",
            "mhz": 4359.983,
            "core_id": 5,
            "physical_id": 0,
        }
    }
}