WindowsServerDiskSpaceUsage #
Disk usage is more than 80%
Alert Rule
alert: WindowsServerDiskSpaceUsage
annotations:
description: |-
Disk usage is more than 80%
VALUE = {{ $value }}
LABELS = {{ $labels }}
runbook: https://srerun.github.io/prometheus-alerts/runbooks/windows-exporter/windowsserverdiskspaceusage/
summary: Windows Server disk Space Usage (instance {{ $labels.instance }})
expr: 100.0 - 100 * ((windows_logical_disk_free_bytes / 1024 / 1024 ) / (windows_logical_disk_size_bytes
/ 1024 / 1024)) > 80
for: 2m
labels:
severity: critical
Here is the runbook for the WindowsServerDiskSpaceUsage alert:
Meaning #
The WindowsServerDiskSpaceUsage alert indicates that the disk space usage on a Windows Server has exceeded 80%. This alert is critical, as it can lead to server crashes, slow performance, and data loss. It is essential to address this issue promptly to prevent downtime and ensure business continuity.
Impact #
High disk space usage can cause a range of issues, including:
- Server crashes or freezes
- Slow performance and responsiveness
- Inability to write data to disk, leading to data loss
- Failure of applications and services that rely on disk storage
- Increased risk of data corruption and security breaches
Diagnosis #
To diagnose the issue, follow these steps:
- Check the disk usage metrics to determine which disk(s) are experiencing high usage.
- Identify the top disk space consumers using tools like Windows Explorer or disk usage analysis software.
- Verify if there are any large files or directories that can be safely deleted or archived.
- Check for any disk-related errors or warnings in the Windows Event Log.
- Review disk usage trends to determine if the issue is sudden or gradual.
Mitigation #
To mitigate the issue, follow these steps:
- Delete unnecessary files and directories: Remove any unnecessary files, logs, or data that are consuming disk space.
- Archive or move data: Move infrequently used data to a secondary storage location, such as an external drive or cloud storage.
- Optimize disk usage: Implement disk cleanup and optimization tools, such as Windows Disk Cleanup, to free up disk space.
- Expand disk capacity: Consider expanding the disk capacity by adding more storage or replacing existing disks with larger ones.
- Implement disk monitoring: Set up regular disk usage monitoring to detect potential issues before they become critical.
Remember to also investigate and address any underlying causes of high disk space usage, such as application or service misconfigurations, to prevent similar issues from occurring in the future.