Skip to content

XFS Quota


The xfsquota collector collects quota information from xfs file systems by running xfs_quota and parsing its standard output.

Configuration

Prerequisites

The xfs_quota executable must exist on the host.

Collector Configuration

Go to the conf.d/samples directory under the DataKit installation path, copy xfsquota.conf.sample, and rename it to xfsquota.conf. An example is shown below:

[[inputs.xfsquota]]
    ## Path to the xfs_quota binary.
    binary_path = "/usr/sbin/xfs_quota"

    ## (Optional) Collect interval: (defaults to "1m").
    interval = "1m"

    ## Required.
    ## Filesystem path to which the quota will be applied.
    filesystem_path = "/hana"

    ## Specifies the version of the parsing format.
    parser_version = "v1"

    [inputs.xfsquota.tags]
    # some_tag = "some_value"
    # more_tag = "some_other_value"

After the configuration is complete, restart DataKit.

Currently, you can enable this collector by injecting the collector configuration through ConfigMap.

Metrics

xfsquota

Tags & Fields Description
filesystem_path
(tag)
The file path of the XFS quota limit.
project_id
(tag)
The Project ID in xfs_quota identifies a project or group for disk usage limits.
hard The hard disk block usage limit for the project.
Type: int | (gauge)
Unit: count
Tagged by: filesystem_path, project_id
soft The soft disk block usage limit for the project.
Type: int | (gauge)
Unit: count
Tagged by: filesystem_path, project_id
used The current disk block usage by the project.
Type: int | (gauge)
Unit: count
Tagged by: filesystem_path, project_id