Free disk space π
Description π
The Splunk Distribution of OpenTelemetry Collector provides this integration as the filesystem
monitor type for the Smart Agent Receiver.
This monitor reports metrics about free disk space on mounted devices.
On Linux hosts, this monitor relies on the /proc
filesystem. If the underlying host/proc
file system is mounted somewhere other than /proc
, specify the path using the top level configuration procPath
, as shown in the following example:
procPath: /hostfs/proc
monitors:
- type: filesystems
hostFSPath: /hostfs
This monitor does not accept endpoints. This monitor does allow multiple instances.
Migrating from collectd/df π
The collectd/df
monitor is being deprecated in favor of the filesystems
monitor. While the collectd/df
monitor will still be available in
version 5.0, switch to the filesystems
monitor soon after upgrading. There are a few incompatibilities to be aware of between the two monitors:
collectd/df
used a dimension calledplugin_instance
to identify the mount point or device of the filesystem. This dimension is completely removed in thefilesystems
monitor and replaced by themountpoint
anddevice
dimensions. You no longer have to select between the two (thereportByDevice
option oncollectd/df
) as both are always reported.The mountpoints in the
plugin_instance
dimension ofcollectd/df
were reported with-
instead of the more conventional/
separated path segments. Thefilesystems
monitor always reports mountpoints in themountpoint
dimension and uses the conventional/
separator.The
collectd/df
plugin set a dimensionplugin: df
on all data points, butfilesystems
has no such comparable dimension.
Installation π
This monitor is available in the Smart Agent Receiver, which is part of the Splunk Distribution of OpenTelemetry Collector.
To install this integration:
Deploy the OpenTelemetry Collector to your host or container platform.
Configure the monitor, as described in the next section.
Configuration π
The Splunk Distribution of OpenTelemetry Collector allows embedding a Smart Agent monitor configuration in an associated Smart Agent Receiver instance.
Note: Providing a filesystems monitor entry in your Collector or Smart Agent (deprecated) configuration is required for its use. Use the appropriate form for your agent type.
Splunk Distribution of OpenTelemetry Collector π
If you are using the Splunk Distribution of OpenTelemetry Collector and want to collect file system utilization metrics, use the Host metrics receiver.
Smart Agent π
If you are using this monitor in the Smart Agent, add the following to your agent configuration:
monitors: # All monitor config goes under this key
- type: filesystems
... # Additional config
See Smart Agent example configuration for an autogenerated example of a YAML configuration file, with default values where applicable.
Configuration settings π
The following table shows the configuration options for this monitor.
Option |
Required |
Type |
Description |
---|---|---|---|
|
no |
|
Path to the root of the host filesystem. It is useful when running in a container and the host filesystem is mounted in a subdirectory under /. The disk usage metrics emitted will be based at this path. |
|
no |
|
The filesystem types to include/exclude. This is an overridable set. If this is not set, the default value is the set of all non-logical/virtual filesystems on the system. On Linux this list is determined by reading the |
|
no |
|
The mount paths to include/exclude. This is an overridable set. Note: If you are using the hostFSPath option, do not include the |
|
no |
|
Set to |
Metrics π
The following metrics are available for this integration:
Get help π
If you are not able to see your data in Splunk Observability Cloud, try these tips:
Submit a case in the Splunk Support Portal
Available to Splunk Observability Cloud customers
-
Available to Splunk Observability Cloud customers
Ask a question and get answers through community support at Splunk Answers
Available to Splunk Observability Cloud customers and free trial users
Join the Splunk #observability user group Slack channel to communicate with customers, partners, and Splunk employees worldwide
Available to Splunk Observability Cloud customers and free trial users
To learn how to join, see Get Started with Splunk Community - Chat groups
To learn about even more support options, see Splunk Customer Success.