IOPing (Go)
Plugin: go.d.plugin Module: ioping
Overview
Monitor storage I/O latency by timing reads and writes on filesystems and reads on files and disk devices.
Each job probes one destination and charts how long a read takes, how long a write and its sync take, or both, so you see storage slowing down as your applications experience it.
Every collection interval, the job times one request of request_size bytes at a random offset for each
operation its mode enables. A write is timed together with its sync (fdatasync on Linux, fsync on
macOS and FreeBSD).
| Destination | Modes | What Netdata reads or writes |
|---|---|---|
| Directory | read, write, both | A private 1 MiB file for each operation, never other files in the directory. |
| Regular file | read | The file, opened read-only. |
| Disk device | read | The device, opened read-only: a Linux block device, a macOS raw disk (/dev/rdiskN), or a FreeBSD GEOM disk. |
Netdata creates each private file when the probe opens, at job start and again after a failed request, and
fills it with random data. It removes the file's name right away, so the file does not appear in the
directory, and frees its space when the probe closes. On NFS, a hidden .nfsXXXX file stays in the
directory until then.
Some reads are served from memory and report a lower latency than the device:
- On Linux, Netdata evicts the requested pages before each read, but a page stays cached while another process has the file mapped.
- On macOS, Netdata disables caching for its own reads, but pages of an existing file that are already in memory, for example because another process read them, are still served from memory.
- Filesystems with their own cache, such as ZFS, can serve a read from that cache.
This collector is only supported on the following platforms:
- Linux
- macOS
- FreeBSD
This collector supports collecting metrics from multiple instances of this integration.
Probes run with the effective permissions of go.d.plugin.
| Destination | Required access |
|---|---|
| Directory | Permission to create and delete files in the directory, in every mode. |
| Regular file | Read access to the file. |
| Disk device | Read access to the device node. |
On Linux, DEB and RPM packages normally grant go.d.plugin the CAP_DAC_READ_SEARCH capability, which
bypasses file read and directory search permission checks. DEB, source, and static installations can fall
back to running the plugin setuid root, and the stock Docker image always does. In a container, also expose
the destination inside the container and allow access to any disk device you select.
Default Behavior
Auto-Detection
No jobs run by default. The collector probes only the destinations you configure.
Limits
Each job probes one destination; add a job with a unique name for each destination you want to measure.
If the filesystem or device stalls during a request, the job reports no samples until the request returns, and stopping or restarting the job waits for it too.
Performance Impact
Each interval issues one request per enabled operation, and each write adds a sync. With the defaults, that is one 4 KiB read per second. A directory probe also writes its 1 MiB private file each time it opens: at job start and after each failed request.
Increase update_every if the probes add noticeable load to the filesystem or disk.
Setup
You can configure the ioping collector in two ways:
| Method | Best for | How to |
|---|---|---|
| UI | Fast setup without editing files | Go to Nodes → Configure this node → Collectors → Jobs, search for ioping, then click + to add a job. |
| File | If you prefer configuring via file, or need to automate deployments (e.g., with Ansible) | Edit go.d/ioping.conf and add a job. |
UI configuration requires paid Netdata Cloud plan.
Prerequisites
Disable the standalone IOPing plugin for a migrated destination
Only when the standalone IOPing plugin (ioping.plugin, configured in ioping.conf) already probes
the destination:
- Create a job for the destination in
go.d/ioping.conf. For a directory job that uses-W, setmode: write. - Disable the standalone launcher under
[plugins]innetdata.conf:ioping = noforioping.plugin, or<name> = nofor a launcher installed as<name>.plugin. - Restart the Agent.
The Go job starts its own chart history under the ioping.read_latency and ioping.write_latency
contexts, in seconds, with their own stock alerts. Update dashboards and custom alerts that use
ioping.latency.
Configuration
Options
The following options can be defined globally: update_every.
| Option | Description | Default | Required |
|---|---|---|---|
| destination | Absolute path to the directory, regular file, or disk device to probe on this host. | yes | |
| mode | Operations to measure: read, write, or both. Write and both require a directory. | read | no |
| request_size | Bytes transferred by each request, as a byte count or with a unit such as KiB. The maximum is 1 MiB. | 4 KiB | no |
| update_every | Data collection interval, in seconds. | 1 | no |
| vnode | Associates this job with a Virtual Node. | no |
mode
| Mode | Each interval measures |
|---|---|
read | One read. |
write | One write and its sync. |
both | One read, then one write and its sync, each on its own private file. |
request_size
Each sample includes the time to transfer the whole request, so larger requests usually report a higher
latency on the same storage. Compare latencies across jobs only at the same size; the request_size
label shows it.
via UI
Configure the ioping collector from the Netdata web interface:
- Go to Nodes.
- Select the node where you want the ioping data-collection job to run and click the ⚙ (Configure this node). That node will run the data collection.
- The Collectors → Jobs view opens by default.
- In the Search box, type ioping (or scroll the list) to locate the ioping collector.
- Click the + next to the ioping collector to add a new job.
- Fill in the job fields, then click Test to verify the configuration and Submit to save.
- Test validates the provided settings and checks the collector's startup prerequisites. Successful validation does not guarantee that every metric will be available during collection.
- If it fails, an error message appears with details (for example, connection refused, timeout, or command execution errors), so you can adjust and retest.
via File
The configuration file name for this integration is go.d/ioping.conf.
The file format is YAML. Generally, the structure is:
update_every: 1
autodetection_retry: 0
jobs:
- name: some_name1
- name: some_name2
You can edit the configuration file using the edit-config script from the
Netdata config directory.
cd /etc/netdata 2>/dev/null || cd /opt/netdata/etc/netdata
sudo ./edit-config go.d/ioping.conf
Examples
Filesystem read latency
Probe reads on the filesystem that holds the directory. The directory must be writable by the Agent.
jobs:
- name: data
destination: /mnt/data
Filesystem read and write latency
Measure a read and a synced write every interval on the same filesystem.
jobs:
- name: data
destination: /mnt/data
mode: both
Disk device read latency
Probe reads on a disk device. This example uses a Linux block device; on macOS, use the raw disk (such
as /dev/rdisk2), and on FreeBSD, the GEOM disk (such as /dev/ada1).
jobs:
- name: disk
destination: /dev/sdb
Multi-instance
One job per destination.
jobs:
- name: data
destination: /mnt/data
- name: backup
destination: /mnt/backup
mode: both
Alerts
The following alerts are available:
| Alert name | On metric | Description |
|---|---|---|
| ioping_read_latency | ioping.read_latency | Average read latency over the last 10 seconds |
| ioping_write_latency | ioping.write_latency | Average write and sync latency over the last 10 seconds |
Metrics
Metrics grouped by scope.
The scope defines the instance that the metric belongs to. An instance is uniquely identified by a set of labels.
A failed request leaves a gap in its chart, never a zero latency. In both mode, a failure of one operation
does not stop the other operation's samples.
Per destination
The directory, file, or disk device that one job probes.
Labels:
| Label | Description |
|---|---|
| destination | Configured path of the directory, file, or disk device. |
| request_size | Configured bytes per request, such as 4KiB. |
Metrics:
| Metric | Description | Dimensions | Unit | read mode | write mode | both mode |
|---|---|---|---|---|---|---|
| ioping.read_latency | Read Latency | latency | seconds | • | • | |
| ioping.write_latency | Write and Sync Latency | latency | seconds | • | • |
Troubleshooting
Diagnostics
Debug Mode
Important: Debug mode is not supported for data collection jobs created via the UI using the Dyncfg feature.
To troubleshoot issues with the ioping collector, run the go.d.plugin with the debug option enabled. The output
should give you clues as to why the collector isn't working.
-
Navigate to the
plugins.ddirectory, usually at/usr/libexec/netdata/plugins.d/. If that's not the case on your system, opennetdata.confand look for thepluginssetting under[directories].cd /usr/libexec/netdata/plugins.d/ -
Switch to the
netdatauser.sudo -u netdata -s -
Run the
go.d.pluginto debug the collector:./go.d.plugin -d -m iopingTo debug a specific job:
./go.d.plugin -d -m ioping -j jobName
Getting Logs
If you're encountering problems with the ioping collector, follow these steps to retrieve logs and identify potential issues:
- Run the command specific to your system (systemd, non-systemd, or Docker container).
- Examine the output for any warnings or error messages that might indicate issues. These messages should provide clues about the root cause of the problem.
System with systemd
Use the following command to view logs generated since the last Netdata service restart:
journalctl _SYSTEMD_INVOCATION_ID="$(systemctl show --value --property=InvocationID netdata)" --namespace=netdata --grep ioping
System without systemd
Locate the collector log file, typically at /var/log/netdata/collector.log, and use grep to filter for collector's name:
grep ioping /var/log/netdata/collector.log
Note: This method shows logs from all restarts. Focus on the latest entries for troubleshooting current issues.
Docker Container
If your Netdata runs in a Docker container named "netdata" (replace if different), use this command:
docker logs netdata 2>&1 | grep ioping
Known Errors
stat probe destination: no such file or directory
Cause
The destination path does not exist on the host running the Agent, or a containerized Agent cannot see it.
Fix
Set destination to an existing absolute path. For a containerized Agent, mount the path into the container.
write and both modes require a directory
Cause
The destination of a write or both job is a file or a device. Netdata writes only to its own private files, which it creates in a directory.
Fix
Set destination to a directory on the filesystem you want to measure, or set mode: read to measure reads of the existing file or device.
probe destination must be a directory, regular file, or supported disk device
Cause
The destination is another kind of file, such as a named pipe, a socket, a character device on Linux, or a macOS block disk (/dev/diskN) instead of its raw disk.
Fix
Point destination at a directory, a regular file, or a disk device. On macOS, use the raw disk path, such as /dev/rdisk2.
read disk device geometry: error
When
The destination is a character device on macOS or FreeBSD.
Cause
The device is not a disk, for example /dev/null, so it reports no size or sector size. On macOS, error reads operation not supported by device.
Fix
Point destination at a disk device, such as /dev/rdisk2 on macOS or /dev/ada1 on FreeBSD, or at a directory or a regular file.
open probe destination: permission denied
Cause
The Agent cannot read the existing file or disk device, usually because go.d.plugin runs without CAP_DAC_READ_SEARCH or setuid root.
Fix
Grant the netdata user read access to the file or device, or restore the plugin's capabilities by reinstalling the Netdata package.
create private probe file: permission denied
Cause
The Agent cannot create files in the destination directory. Every directory job, including read mode, needs its own private file.
Fix
Grant the netdata user permission to create and delete files in the directory, or choose a directory it can write to on the same filesystem.
create private probe file: read-only file system
Cause
The destination directory is on a read-only filesystem, so Netdata cannot create its private file.
Fix
To measure reads on that filesystem, set destination to an existing file on it, with mode: read.
initialize private probe file: no space left on device
Cause
The filesystem that holds the destination directory has less free space than the 1 MiB private file each operation needs.
Fix
Free space on that filesystem. The job tries again on every collection.
probe destination is smaller than the N-byte request
Cause
The existing file or disk device is smaller than request_size.
Fix
Lower request_size to at most the size of the file or device.
request size must be a multiple of the disk device block size (N bytes)
When
The destination is a disk device on macOS or FreeBSD.
Cause
These systems accept raw disk reads only in whole sectors.
Fix
Set request_size to a multiple of the reported block size, such as 4 KiB.
unlink private probe file path: error
Cause
Netdata created its private file but could not remove the file's name, so the file stays in the directory.
Fix
Delete the reported file and grant the netdata user permission to delete files in the directory.
read probe destination: unexpected EOF (N of M bytes)
Cause
The existing file became shorter than request_size after the job opened it, for example because it was truncated or rewritten.
Fix
Keep the file at least request_size bytes long, or probe a directory on the same filesystem instead. The job reopens the file on the next collection.
recheck probe destination: no such file or directory
Cause
The destination was removed or renamed while the job was running.
Fix
Restore the path. The job opens it again on the first collection after it exists.
probe destination changed
Cause
The destination path now leads to a different file, directory, or device than when the probe opened it, for example after a remount, a rename, or a symlink change.
Fix
No action is needed for an intended change; the job opens the new destination on the next collection. If the message repeats, point destination at a path that stays stable.
Do you have any feedback for this page? If so, you can open a new issue on our netdata/learn repository.