Skip to content
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.

Latest commit

 

History

History
77 lines (51 loc) · 3.24 KB

collectd-disk.md

File metadata and controls

77 lines (51 loc) · 3.24 KB

collectd/disk

Monitor Type: collectd/disk (Source)

Accepts Endpoints: No

Multiple Instances Allowed: No

Overview

This monitor collects information about the usage of physical disks and logical disks (partitions).

See https://collectd.org/wiki/index.php/Plugin:Disk.

This monitor has been deprecated in favor of the disk-io monitor. Please migrate to that monitor as this collectd-based monitor will be removed in a future release of the agent. Note that the disk-io monitor has a different dimension (disk instead of plugin_instance) to specify the disk.

Configuration

To activate this monitor in the Smart Agent, add the following to your agent config:

monitors:  # All monitor config goes under this key
 - type: collectd/disk
   ...  # Additional config

For a list of monitor options that are common to all monitors, see Common Configuration.

Config option Required Type Description
disks no list of strings Which devices to include/exclude (default: [/^loop[0-9]+$/ /^dm-[0-9]+$/])
ignoreSelected no bool If true, the disks selected by disks will be excluded and all others included. (default: true)

Metrics

These are the metrics available for this monitor. Metrics that are categorized as container/host (default) are in bold and italics in the list below.

  • disk_io_time.io_time (cumulative)
    Amount of time spent doing IO in ms
  • disk_io_time.weighted_io_time (cumulative)
    Amount of time spent doing IO in ms multiplied by the queue length
  • disk_merged.read (cumulative)
    The number of disk reads merged into single physical disk access operations.
  • disk_merged.write (cumulative)
    The number of disk writes merged into single physical disk access operations.
  • disk_octets.read (cumulative)
    The number of bytes (octets) read from a disk.
  • disk_octets.write (cumulative)
    The number of bytes (octets) written to a disk.
  • disk_ops.read (cumulative)
    The number of disk read operations.
  • disk_ops.write (cumulative)
    The number of disk write operations.
  • disk_time.read (cumulative)
    The average amount of time it took to do a read operation.
  • disk_time.write (cumulative)
    The average amount of time it took to do a write operation.
  • pending_operations (gauge)
    Number of pending operations

Non-default metrics (version 4.7.0+)

To emit metrics that are not default, you can add those metrics in the generic monitor-level extraMetrics config option. Metrics that are derived from specific configuration options that do not appear in the above list of metrics do not need to be added to extraMetrics.

To see a list of metrics that will be emitted you can run agent-status monitors after configuring this monitor in a running agent instance.