RedisMissingBackup #
Redis has not been backuped for 24 hours
Alert Rule
alert: RedisMissingBackup
annotations:
description: |-
Redis has not been backuped for 24 hours
VALUE = {{ $value }}
LABELS = {{ $labels }}
runbook: https://srerun.github.io/prometheus-alerts/runbooks/oliver006-redis-exporter/redismissingbackup/
summary: Redis missing backup (instance {{ $labels.instance }})
expr: time() - redis_rdb_last_save_timestamp_seconds > 60 * 60 * 24
for: 0m
labels:
severity: critical
Here is a runbook for the Prometheus alert rule “RedisMissingBackup”:
Meaning #
The “RedisMissingBackup” alert is triggered when the Redis database has not been backed up for more than 24 hours. This is a critical alert because it indicates that the data in Redis is at risk of being lost in case of a failure.
Impact #
If this alert is not addressed, the consequences could be severe:
- Data loss: If the Redis instance fails or is restarted, all data stored in Redis will be lost.
- System downtime: The system may experience downtime or errors until the Redis instance is restored from a backup.
- Business impact: The loss of Redis data can have a significant impact on business operations, leading to revenue loss, customer dissatisfaction, and damage to reputation.
Diagnosis #
To diagnose the issue, follow these steps:
- Check the Redis exporter logs to see if there are any errors or issues related to backups.
- Verify that the Redis instance is configured correctly and that backups are scheduled to run regularly.
- Check the system resources (CPU, memory, disk space) to ensure that they are not causing issues with the backup process.
- Review the Redis configuration to ensure that the backup settings are correct and that the backup directory is accessible.
Mitigation #
To mitigate the issue, follow these steps:
- Immediately trigger a manual backup of the Redis instance to ensure that the data is safe.
- Investigate the cause of the backup failure and fix the underlying issue.
- Verify that the backup process is scheduled to run regularly and that the backups are being stored correctly.
- Consider implementing additional monitoring and alerting for Redis backups to ensure that this issue is caught earlier in the future.
- Review and update the Redis configuration to ensure that it is optimal for the system’s requirements.
Remember to update the runbook with any specific details or procedures relevant to your organization’s Redis setup and backup processes.