terraform-aws-rds-alarms icon indicating copy to clipboard operation
terraform-aws-rds-alarms copied to clipboard

support a metric for used storage space to handle autoscaling better

Open mmerickel opened this issue 2 years ago • 2 comments

When using RDS autoscaling of storage you can set a min and max allocation. Setting "disk_free_storage_space_too_low_threshold" is hard because it depends on the currently allocated space which is dynamic.

I really want a metric to tell me when I'm approaching the max storage allocation to know when AWS won't save me anymore. If you enable enhanced monitoring you can use the fileSys.used metric to trigger on this and it'd be nice if it were an option to enable.

Maybe some new options could be added around this conditional on a bool to know whether enhanced monitoring is enabled.

https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Monitoring-Available-OS-Metrics.html

mmerickel avatar Jun 28 '22 16:06 mmerickel

Hey @mmerickel ,

I created a [PR|https://github.com/lorenzoaiello/terraform-aws-rds-alarms/pull/25] that proposes the changes you suggested. Can you take a look and let me know if that's what you had in mind?

lorenzoaiello avatar Feb 17 '24 02:02 lorenzoaiello

I haven't had time to try this but it looks like it would do what I had requested.

mmerickel avatar Feb 22 '24 17:02 mmerickel