Skip to main content

zfs

Plugin: freebsd.plugin Module: zfs

Overview

Collect metrics for ZFS filesystem

The plugin uses sysctl function to collect necessary data.

This collector is supported on all platforms.

This collector supports collecting metrics from multiple instances of this integration, including remote instances.

Default Behavior

Auto-Detection

This integration doesn't support auto-detection.

Limits

The default configuration for this integration does not impose any limits on data collection.

Performance Impact

The default configuration for this integration is not expected to impose a significant performance impact on the system.

Setup

Prerequisites

No action required.

Configuration

Options

Config options
OptionDescriptionDefaultRequired
show zero chartsDo not show charts with zero metrics.nono

via File

The configuration file name for this integration is netdata.conf. Configuration for this specific integration is located in the [plugin:freebsd:zfs_arcstats] section within that file.

The file format is a modified INI syntax. The general structure is:

[section1]
option1 = some value
option2 = some other value

[section2]
option3 = some third value

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 netdata.conf
Examples

There are no configuration examples.

Alerts

The following alerts are available:

Alert nameOn metricDescription
zfs_memory_throttle zfs.memory_opsnumber of times ZFS had to limit the ARC growth in the last 10 minutes

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.

Per zfs instance

These metrics show detailed information about ZFS filesystem.

This scope has no labels.

Metrics:

MetricDescriptionDimensionsUnit
zfs.arc_sizeZFS ARC Sizearcsz, target, min, maxMiB
zfs.l2_sizeZFS L2 ARC Sizeactual, sizeMiB
zfs.readsZFS Readsarc, demand, prefetch, metadata, l2reads/s
zfs.bytesZFS ARC L2 Read/Write Rateread, writeKiB/s
zfs.hitsZFS ARC Hitshits, missespercentage
zfs.hits_rateZFS ARC Hits Ratehits, missesevents/s
zfs.dhitsZFS Demand Hitshits, missespercentage
zfs.dhits_rateZFS Demand Hits Ratehits, missesevents/s
zfs.phitsZFS Prefetch Hitshits, missespercentage
zfs.phits_rateZFS Prefetch Hits Ratehits, missesevents/s
zfs.mhitsZFS Metadata Hitshits, missespercentage
zfs.mhits_rateZFS Metadata Hits Ratehits, missesevents/s
zfs.l2hitsZFS L2 Hitshits, missespercentage
zfs.l2hits_rateZFS L2 Hits Ratehits, missesevents/s
zfs.list_hitsZFS List Hitsmfu, mfu_ghost, mru, mru_ghosthits/s
zfs.arc_size_breakdownZFS ARC Size Breakdownrecent, frequentpercentage
zfs.memory_opsZFS Memory Operationsthrottledoperations/s
zfs.important_opsZFS Important Operationsevict_skip, deleted, mutex_miss, hash_collisionsoperations/s
zfs.actual_hitsZFS Actual Cache Hitshits, missespercentage
zfs.actual_hits_rateZFS Actual Cache Hits Ratehits, missesevents/s
zfs.demand_data_hitsZFS Data Demand Efficiencyhits, missespercentage
zfs.demand_data_hits_rateZFS Data Demand Efficiency Ratehits, missesevents/s
zfs.prefetch_data_hitsZFS Data Prefetch Efficiencyhits, missespercentage
zfs.prefetch_data_hits_rateZFS Data Prefetch Efficiency Ratehits, missesevents/s
zfs.hash_elementsZFS ARC Hash Elementscurrent, maxelements
zfs.hash_chainsZFS ARC Hash Chainscurrent, maxchains
zfs.trim_bytesSuccessfully TRIMmed bytesTRIMmedbytes
zfs.trim_requestsTRIM requestssuccessful, failed, unsupportedrequests

Do you have any feedback for this page? If so, you can open a new issue on our netdata/learn repository.