Disk#
The disk
plugin gathers metrics about disk usage by mount point.
- Configuration:
# Read metrics about disk usage by mount point
[[inputs.disk]]
## Essential component for nJAMS Server. Do not modify!
tags = {type="server"}
## By default stats will be gathered for all mount points.
## Set mount_points will restrict the stats to only the specified mount points.
# mount_points = ["/"]
## Ignore mount points by filesystem type.
ignore_fs = ["tmpfs", "devtmpfs", "devfs", "iso9660", "overlay", "aufs", "squashfs"]
## Ignore mount points by mount options.
## The 'mount' command reports options of all mounts in parathesis.
## Bind mounts can be ignored with the special 'bind' option.
# ignore_mount_opts = []
- Example Output:
{
"fields": {
"free": 103088640,
"inodes_free": 0,
"inodes_total": 0,
"inodes_used": 0,
"inodes_used_percent": 0,
"total": 109422592,
"used": 6333952,
"used_percent": 5.788523086713209
},
"name": "disk",
"tags": {
"device": "vda15",
"fstype": "vfat",
"host": "vslems01",
"id": "vslems01",
"mode": "rw",
"path": "/boot/efi",
"type": "server"
},
"timestamp": 1711456060
}