Type to search.

System diskio metricset

Serverless

Elastic Cloud Serverless projects are autoscaled environments, fully managed by Elastic and available on Elastic Cloud.

Availability

  • Generally available

    This functionality is generally available and ready for production usage.

Serverless interfaces and procedures might differ from classic Elastic Stack deployments.

Stack

The Elastic Stack includes Elastic's core products such as Elasticsearch, Kibana, Logstash, and Beats.

Availability

  • Generally available

    This functionality is generally available and ready for production usage.

Unless stated otherwise on the page, this functionality is available when your Elastic Stack is deployed on Elastic Cloud Hosted, Elastic Cloud Enterprise, Elastic Cloud on Kubernetes, and self-managed environments.

This documentation corresponds to the latest patch available for each minor version. If you're not using the latest patch, check the release notes for changes.

The System diskio metricset provides disk IO metrics collected from the operating system. One event is created for each disk mounted on the system.

This metricset is available on:

  • Linux
  • macOS (requires 10.10+)
  • Windows
  • FreeBSD (amd64)
diskio.include_devices

When the diskio metricset is enabled, you can use the diskio.include_devices option to define a list of device names to pre-filter the devices that are reported. Filters only exact matches. If not set or given [] empty array, all disk devices are returned

The following example config returns metrics for devices matching include_devices:

YAML
metricbeat.modules:
- module: system
  metricsets: ["diskio"]
  diskio.include_devices: ["sda", "sda1"]

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

Here is an example document generated by this metricset:

JSON
{
    "@timestamp": "2017-10-12T08:05:34.853Z",
    "event": {
        "dataset": "system.diskio",
        "duration": 115000,
        "module": "system"
    },
    "metricset": {
        "name": "diskio",
        "period": 10000
    },
    "service": {
        "type": "system"
    },
    "system": {
        "diskio": {
            "io": {
                "ops": 0,
                "time": 545105
            },
            "name": "sda",
            "read": {
                "bytes": 4242313728,
                "count": 181371,
                "time": 2744086
            },
            "write": {
                "bytes": 9611375104,
                "count": 352596,
                "time": 10641320
            }
        }
    }
}