With the price of disk storage dropping every day, you may be wondering: Why bother monitor disk usage any more? Even though storage cost has gone down, you still need to monitor disk usage to ensure that your applications or processes won’t fail due because of insufficient disk storage, which could lead to other failures. And this can be tricky if you're hosting someone else's files since you don’t know when and how much data they are likely to write to storage.

Why use the Disk Telegraf Plugin?

Actively monitoring your free disk space using the Disk Telegraf Plugin — an input plugin — can prevent data loss, server downtime and failures by being alerted on promptly when disk space availability is beyond specified critical thresholds.

Configuring the Disk Telegraf Plugin is simple, and you can start collecting disk storage metrics and storing it in InfluxDB in no time. Once in InfluxDB, you can specify thresholds and receive alerts when those thresholds are crossed and keep track of hard disk usage of your web servers, application servers, file servers and much more. Collect other relevant metric data like CPU and memory usage, and you will start to build a more comprehensive view of your infrastructure.

How to monitor disk usage using the Telegraf plugin

The Disk Telegraf Plugin gathers metrics about disk usage. Note that used_percent is calculated by doing used / (used + free), not used / total, which is how the unix df command does it.

Key disk metrics to use for monitoring

Some important disk metrics you should proactively monitor include:

  • tags:
    • fstype (filesystem type)
    • device (device file)
    • path (mount point path)
    • mode (whether the mount is rw or ro)
  • fields:
    • free (integer, bytes)
    • total (integer, bytes)
    • used (integer, bytes)
    • used_percent (float, percent)
    • inodes_free (integer, files)
    • inodes_total (integer, files)
    • inodes_used (integer, files)

For more information, please check out the documentation.

Project URL   Documentation

Related Resources

CPU Telegraf Plugin

The CPU Telegraf Plugin gathers metrics on the system CPU that you can store in InfluxDB.

Linux System Monitoring Template

How to use Linux System Monitoring Template

Tomcat Monitoring Template

How to use the Tomcat Monitoring Template

Scroll to Top