Monitoring Available Disk Space
Cette page n'est pas encore disponible en français, sa traduction est en cours.
Si vous avez des questions ou des retours sur notre projet de traduction actuel,
n'hésitez pas à nous contacter.
A common system metric to monitor is the available disk space on a given system or host. This guide helps you create a monitor that alerts you when free disk space for a host falls below 10% for any host reporting to Datadog.
To create the monitor for available disk space:
In the navigation menu, click Monitors.
Click New Monitor.
Select Metric as the monitor type.
In the Define the metric section, use system.disk.free
for the metric and select host
for avg by. This is Query a.
Click Add Query. For this metric, use system.disk.total
for the metric and use host
for avg by. This is Query b.
In the formula that appears, replace a + b
with a/b*100
.
Under Evaluation Details, choose your desired evaluation interval.
Under Set alert conditions, select below from the threshold options and enter 10
in Alert threshold field.
In Configure notifications & automations, give your monitor a name, then specify the notification message. Include relevant details and a meaningful message template. For example:
{{#is_alert}}Warning: Free disk space is below 10% on {{host.name}}. Free space: {{system.disk.free}} bytes, Total space: {{system.disk.total}} bytes.{{/is_alert}}
Click Create to save the monitor.