Difference between revisions of "DiskQueueDepth"

From wikieduonline
Jump to navigation Jump to search
Line 1: Line 1:
  
  
 +
resource "aws_cloudwatch_metric_alarm" "db_disk_queue_depth_too_high" {
 +
  alarm_name          = format("%s-%s", lower("${var.rds_name}"), "db-highDiskQueueDepth")
 +
  comparison_operator = "GreaterThanThreshold"
 +
  evaluation_periods  = "2"
 +
  metric_name        = "DiskQueueDepth"
 +
  namespace          = "AWS/RDS"
 +
  period              = "120"
 +
  statistic          = "Average"
 +
  threshold          = "10"
 +
  alarm_description  = "Average database disk queue depth is too high, performance may be negatively impacted."
 +
 +
  dimensions = {
 +
    DBInstanceIdentifier = aws_db_instance.rds_instance.id
 +
  }
 +
}
  
 +
== Related ==
 
* [[Making better decisions about Amazon RDS with Amazon CloudWatch metrics]]
 
* [[Making better decisions about Amazon RDS with Amazon CloudWatch metrics]]
  
 +
== See also --
 
* {{aws_cloudwatch_metric_alarm}}
 
* {{aws_cloudwatch_metric_alarm}}
 
* {{IOPs}}
 
* {{IOPs}}

Revision as of 09:37, 4 May 2023


resource "aws_cloudwatch_metric_alarm" "db_disk_queue_depth_too_high" {
 alarm_name          = format("%s-%s", lower("${var.rds_name}"), "db-highDiskQueueDepth")
 comparison_operator = "GreaterThanThreshold"
 evaluation_periods  = "2"
 metric_name         = "DiskQueueDepth"
 namespace           = "AWS/RDS"
 period              = "120"
 statistic           = "Average"
 threshold           = "10"
 alarm_description   = "Average database disk queue depth is too high, performance may be negatively impacted."

 dimensions = {
   DBInstanceIdentifier = aws_db_instance.rds_instance.id
 }
}

Related

== See also --

Advertising: