mirror of
https://github.com/ClusterCockpit/cc-metric-collector.git
synced 2025-11-06 19:23:48 +01:00
1.8 KiB
1.8 KiB
nfsiostat collector
"nfsiostat": {
"exclude_metrics": [
"oread", "pageread"
],
"only_metrics": [
"nread", "nwrite", "nfsread", "nfswrite"
],
"exclude_filesystem": [
"/mnt"
],
"use_server_as_stype": false,
"send_abs_values": false,
"send_derived_values": true
}
The nfsiostat collector reads data from /proc/self/mountstats and outputs a handful nodes metrics for each NFS filesystem.
Metrics are output with the prefix nfsio_ and the base metric name (e.g. nread, nwrite, etc.). Filtering applies to the base metric name (without the nfsio_ prefix).
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.
Metrics are categorized as follows:
Absolute Metrics:
nfsio_nread: Bytes transferred by normal read() callsnfsio_nwrite: Bytes transferred by normal write() callsnfsio_oread: Bytes transferred by read() calls with O_DIRECTnfsio_owrite: Bytes transferred by write() calls with O_DIRECTnfsio_pageread: Pages transferred by read() callsnfsio_pagewrite: Pages transferred by write() callsnfsio_nfsread: Bytes transferred for reading from the servernfsio_nfswrite: Bytes transferred for writing to the server
Derived Metrics:
For each absolute metric, if send_derived_values is enabled, an additional metric is sent with the _bw suffix, representing the rate:
- For byte metrics:
unit=bytes/sec - For page metrics:
unit=4K_pages/s
The nfsiostat collector adds the mountpoint to the tags as stype=filesystem,stype-id=<mountpoint>. If the server address should be used instead of the mountpoint, use the use_server_as_stype config setting.