host-filesystem datasource
The host-filesystem datasource collects information about file systems from the operating system and creates entities and metric data points.
Metrics
Name | Units | Description |
|---|---|---|
| blocks | Available storage blocks |
| inodes | Available inodes |
| inodes | Total inodes |
| inodes | Used inodes |
| percent | Inode utilization |
| blocks | Used storage blocks |
| percent | Overall utilization |
Name styles
This datasource supports two mutually exclusive naming styles for the metrics that it collects:
canonical: The default style, which features namespace prefixes.linuxMonitorZenPack: The legacy style, used in the Linux Monitor ZenPack.
To change the default style, set the metric-names-variant property in the datasource section to linuxMonitorZenPack.
Canonical style | ZenPack style |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Entities
Property | Description |
|---|---|
| File system mount point |
| File system size, in bytes |
| File system mount point |
| File system read/write mode |
| File system physical storage drive |
| File system type |
Example
{
"capacityBytes": "28926365696",
"mode": "rw",
"mount": "/dev",
"name": "/dev",
"storageDevice": "devtmpfs",
"type": "devtmpfs"
}
Configuration
If you specify the host-filesystem datasource during installation, its configuration file is placed in the following location:
/etc/zendatamon-configs/configs/host-filesystem.config.yaml
Otherwise, you must copy it from the templates directory:
cp /etc/zendatamon-configs/.templates/.configs/host-filesystem.config.yaml \ /etc/zendatamon-configs/configs/host-filesystem.config.yaml
The Virtana Service Observability agent service monitors the /etc/zendatamon-configs/configs directory and loads any new or changed configuration files immediately.
Properties
interval(number)The number of seconds to wait between collection attempts. This value overrides the
defaultIntervalvalue in the Virtana Service Observability agent service configuration file.timeout(number)The number of seconds to wait before dropping a collection attempt.
metric-names-variant(string, default =canonical)The metric name style, either
canonicalorlinuxMonitorZenPack.protocol(string, default =local)Collection type; only
localis supported, so this key can be omitted.ignore-names(array)A list of regular expressions that identify a set of file system not to collect. If empty or omitted, all file systems collected.
ignore-types(array)A list of file system types to skip during collection. If empty or omitted, all file systems types are collected.
Example
apiVersion: v1
kind: datasource
name: host-filesystem
spec:
type: host-filesystem
datasource:
interval: 60
timeout: 30
metric-names-variant: canonical
protocol: ""
ignore-names: ""
ignore-types:
- other
- ram
- virtualMemory
- removableDisk
- floppyDisk
- compactDisk
- ramDisk
- flashMemory
- networkDisk
ZenPack compatibility
For compatibility with the Linux Monitor ZenPack, use the action service to create a metric trigger (and accompanying destination and rule) for filesystem.utilization data points that are greater than 90%.