Docker cpu metricset

The Docker cpu metricset collects runtime CPU metrics.

Fields

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",
    "beat": {
        "hostname": "host.example.com",
        "name": "host.example.com"
    },
    "docker": {
        "container": {
            "id": "bbdcbc751e7eda7a50e773b4a5d8c2800af664f835ef9c0ad6bbb9c160c50d83",
            "labels": {
                "build-date": "20170911",
                "com_docker_compose_config-hash": "371e477ae73fd44b19bcbcf0d4feaf4de9adfb69137a8f16d09cff749724ca99",
                "com_docker_compose_container-number": "1",
                "com_docker_compose_oneoff": "False",
                "com_docker_compose_project": "metricbeat",
                "com_docker_compose_service": "elasticsearch",
                "com_docker_compose_version": "1.21.0",
                "license": "GPLv2",
                "maintainer": "Elastic Docker Team \u003cdocker@elastic.co\u003e",
                "name": "CentOS Base Image",
                "vendor": "CentOS"
            },
            "name": "metricbeat_elasticsearch_1"
        },
        "cpu": {
            "core": {
                "0": {
                    "pct": 0.01012583677581864,
                    "ticks": 9528454911
                },
                "1": {
                    "pct": 0.0069975889168765746,
                    "ticks": 11916812270
                },
                "2": {
                    "pct": 0.001329603022670025,
                    "ticks": 10894346015
                },
                "3": {
                    "pct": 0.0018390015113350126,
                    "ticks": 10847487614
                }
            },
            "kernel": {
                "pct": 0.010075566750629723,
                "ticks": 1960000000
            },
            "system": {
                "pct": 4,
                "ticks": 1092479570000000
            },
            "total": {
                "pct": 0.02029203022670025
            },
            "user": {
                "pct": 0.010075566750629723,
                "ticks": 40960000000
            }
        }
    },
    "metricset": {
        "host": "/var/run/docker.sock",
        "module": "docker",
        "name": "cpu",
        "rtt": 115
    }
}