Skip to main content

BCache

Plugin: proc.plugin Module: /sys/fs/bcache

Overview

Statistics for BCache (block layer cache) devices, including cache hit ratios, I/O operations, cache allocations, and bypass activity.

This collector is only supported on the following platforms:

  • Linux

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

Default Behavior

Auto-Detection

Automatically detects BCache devices by reading stats from /sys/block/*/bcache/.

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.

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 disk

Labels:

LabelDescription
deviceTBD
mount_pointTBD
device_typeTBD

Metrics:

MetricDimensionsUnit
disk.bcache_cache_allocununsed, dirty, clean, metadata, undefinedpercentage
disk.bcache_hit_ratio5min, 1hour, 1day, everpercentage
disk.bcache_ratescongested, writebackKiB/s
disk.bcache_sizedirtyMiB
disk.bcache_usageavailpercentage
disk.bcache_cache_read_racesraces, errorsoperations/s
disk.bcachehits, misses, collisions, readaheadsoperations/s
disk.bcache_bypasshits, missesoperations/s

Alerts

The following alerts are available:

Alert nameOn metricDescription
bcache_cache_dirty disk.bcache_cache_allocpercentage of cache space used for dirty data and metadata (this usually means your SSD cache is too small)
bcache_cache_errors disk.bcache_cache_read_racesnumber of times data was read from the cache, the bucket was reused and invalidated in the last 10 minutes (when this occurs the data is reread from the backing device)

Setup

Prerequisites

No action required.

Configuration

Options

There are no configuration options.

via File

The configuration file name for this integration is netdata.conf.

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.


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