mirror of
https://github.com/ClusterCockpit/cc-metric-collector.git
synced 2025-12-16 12:16:17 +01:00
1.5 KiB
1.5 KiB
iostat collector
"iostat": {
"exclude_metrics": [
"io_read_ms"
],
"exclude_devices": [
"nvme0n1p1",
"nvme0n1p2",
"md127"
],
"only_metrics": [],
"send_abs_values": true,
"send_diff_values": true,
"send_derived_values": true
}
The iostat collector reads data from /proc/diskstats and outputs a handful node metrics. If a metric is not required, it can be excluded from forwarding it to the sink.
Both filtering mechanisms are supported:
exclude_metrics: Excludes the specified metrics.only_metrics: If provided, only the listed metrics are collected. This takes precedence overexclude_metrics.
Absolute Metrics:
io_readsio_reads_mergedio_read_sectorsio_read_msio_writesio_writes_mergedio_writes_sectorsio_writes_msio_ioopsio_ioops_msio_ioops_weighted_msio_discardsio_discards_mergedio_discards_sectorsio_discards_msio_flushesio_flushes_ms
Diff Metrics:
For each metric, if send_diff_values is enabled, the collector computes the difference (current value minus previous value) and sends it with the suffix _diff.
Derived Metrics:
For each metric, if send_derived_values is enabled, the collector computes the derived rate (difference divided by the time interval) and sends it with the suffix _rate.
The device name is added as tag device. For more details, see https://www.kernel.org/doc/html/latest/admin-guide/iostats.html