Alert Runbooks

RDSDiskSpacePrediction

Runbook: RDSDiskSpacePrediction Alert

Alert Details

Description

Alert is triggered when monitoring predict the RDS storage disk space will be full.

Possible Causes

Troubleshooting Steps

1. Determine whether it’s a long-term growth trend requiring storage increase or abnormal disk usage reflecting another problem:

Look at Postgresql live activity Grafana dashboard to find long-running query

2. Fix the system that blocks PostgreSQL to recycle its WAL files

3. Increase RDS disk space

export AWS_PROFILE=<AWS account>

INSTANCE_IDENTIFIER=<replace with the RDS instance identifier> aws rds describe-db-instances --db-instance-identifier ${INSTANCE_IDENTIFIER} \ | jq -r '{"Current IOPS": .DBInstances[0].Iops, "Current Storage Limit": .DBInstances[0].AllocatedStorage, "New minimum storage size": ((.DBInstances[0].AllocatedStorage|tonumber)+(.DBInstances[0].AllocatedStorage|tonumber*0.1|floor))}'

NEW_ALLOCATED_STORAGE=<replace with new allocated storage in GB> aws rds modify-db-instance --db-instance-identifier ${INSTANCE_IDENTIFIER} --allocated-storage ${NEW_ALLOCATED_STORAGE} --apply-immediately \ | jq .DBInstance.PendingModifiedValues

❗ If the RDS instance has replicas instances (replica or reporting), you must repeat the operation for all replicas to keep the same configuration between instances