alerts for blocking locks on RDS Postgresql or Aurora Postgresql

0

Looking for a solution to create an alert for blocking locks in Aurora Postgres or RDS postgres. Has anyone done this and how did you accomplish this?

Thanks!

Jeremy

질문됨 8달 전816회 조회
2개 답변
0

Hi Jeremy, have you tried this?

  1. Enabling Enhanced Monitoring: Start by enabling Enhanced Monitoring for your RDS or Aurora instance. You can enable Enhanced Monitoring when creating a new instance or modify an existing one. You can select the desired granularity level (e.g., 1 second, 10 seconds, etc.) depending on your needs.

  2. Set up CloudWatch Alarms: Once Enhanced Monitoring is enabled, you can set up CloudWatch Alarms to monitor for blocking locks. In the metrics list, search for the relevant metric related to locks. It might be under the "Database" or "PostgreSQL" namespace, and the metric name might contain "lock" or "blocking." Define your threshold for the alarm.

  3. Set Up Actions: Define actions to take when the alarm state is triggered. Common actions include sending notifications through Amazon SNS (Simple Notification Service), executing an AWS Lambda function, or running a custom script.

  4. Notification Configuration: Configure your notification targets (e.g., email, SMS, or a webhook) to receive alerts when the alarm state changes (e.g., from OK to ALARM).

[Blog Post Link that might help] https://aws.amazon.com/blogs/database/monitor-amazon-rds-for-postgresql-and-amazon-aurora-for-postgresql-database-log-errors-and-set-up-notifications-using-amazon-cloudwatch/

  1. Publish the PostgreSQL log to CloudWatch Logs.
  2. Create an SNS topic.
  3. Create an SNS subscription.
  4. Create a metric filter on the log group in CloudWatch Logs.
  5. Create an alarm in CloudWatch.
AWS
답변함 8달 전
  • Blocking locks are not reported in cloudwatch. I've looked into this extensively already.

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인