简体   繁体   中英

Percentage Available connection alert for AWS Aurora

I am looking forward to creating a alert/notification which is triggered when the number of available connections to an Aurora Instance go below 20%.

By this I mean an alert which will be triggered when the total number of used connections to the instance go above 80%. I am not able to find any such alarm in CW. Can someone recommend how to create such an alert?

Thanks

I assume you're using Aurora provisioned, in which case your max_connections parameter would be constant, unless you explicitly set a different value. There is a CloudWatch metric for the number of DB connections https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Aurora.AuroraMySQL.Monitoring.Metrics.html#Aurora.AuroraMySQL.Monitoring.Metrics.instances , and here are the default connection limits for different Aurora Postgres instance types. You can use this to compute the percentage of used connections.

If you anticipate changing the value of max_connections over time, you would need to monitor the value yourself and upload it to CloudWatch.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM