Auto-generated
This page is generated by terraform-docs at build time from the infra/ repo. Do not edit manually.
Monitoring — RDS Postgres¶
CloudWatch alarms for an RDS instance: CPU, freeable memory, free storage, and DiskQueueDepth. Thresholds default loose (sustained 15-minute breaches) so we page on real problems, not transient spikes.
Requirements¶
No requirements.
Providers¶
| Name | Version |
|---|---|
| aws | n/a |
Modules¶
No modules.
Resources¶
| Name | Type |
|---|---|
| aws_cloudwatch_metric_alarm.cpu | resource |
| aws_cloudwatch_metric_alarm.disk_queue_depth | resource |
| aws_cloudwatch_metric_alarm.free_memory | resource |
| aws_cloudwatch_metric_alarm.free_storage | resource |
Inputs¶
| Name | Description | Type | Default | Required |
|---|---|---|---|---|
| alarm_actions | List of ARNs to notify on alarm transitions. Typically the PagerDuty SNS topic ARN. | list(string) |
n/a | yes |
| base_tags | Base tags applied to all alarms. | map(string) |
{} |
no |
| cpu_threshold | Trigger when CPUUtilization exceeds this percentage. | number |
90 |
no |
| db_instance_id | RDS DB instance identifier (the DBInstanceIdentifier CloudWatch dimension). | string |
n/a | yes |
| disk_queue_depth_threshold | Trigger when DiskQueueDepth exceeds this value. Loose proxy for IO contention on gp3. | number |
64 |
no |
| evaluation_periods | Number of consecutive periods that must breach for the alarm to fire. | number |
3 |
no |
| free_memory_bytes_threshold | Trigger when FreeableMemory drops below this many bytes. Default ~200 MB. | number |
209715200 |
no |
| free_storage_bytes_threshold | Trigger when FreeStorageSpace drops below this many bytes. Default 5 GB. | number |
5368709120 |
no |
| period | Period in seconds for each evaluation. | number |
300 |
no |
Outputs¶
No outputs.