Skip to content

Commit 489cd81

Browse files
committed
Change CloudWatch alarms to breach on missing data
1 parent def048f commit 489cd81

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

infra/terraform/hash/postgres/alerts.tf

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ resource "aws_cloudwatch_metric_alarm" "rds_cpu_utilization_high" {
6363
datapoints_to_alarm = 3 # 3 of 5 datapoints must be high (grace for spikes)
6464
threshold = 80 # 80%
6565
comparison_operator = "GreaterThanThreshold"
66-
treat_missing_data = "notBreaching"
66+
treat_missing_data = "breaching"
6767

6868
dimensions = {
6969
DBInstanceIdentifier = aws_db_instance.postgres.identifier
@@ -123,7 +123,7 @@ resource "aws_cloudwatch_metric_alarm" "rds_disk_queue_depth_high" {
123123
datapoints_to_alarm = 3 # 3 of 5 datapoints must be high (grace for I/O spikes)
124124
threshold = 10 # operations
125125
comparison_operator = "GreaterThanThreshold"
126-
treat_missing_data = "notBreaching"
126+
treat_missing_data = "breaching"
127127

128128
dimensions = {
129129
DBInstanceIdentifier = aws_db_instance.postgres.identifier
@@ -153,7 +153,7 @@ resource "aws_cloudwatch_metric_alarm" "rds_read_iops_high" {
153153
datapoints_to_alarm = 3 # 3 of 5 datapoints must be high (grace for spikes)
154154
threshold = 500 # IOPS
155155
comparison_operator = "GreaterThanThreshold"
156-
treat_missing_data = "notBreaching"
156+
treat_missing_data = "breaching"
157157

158158
dimensions = {
159159
DBInstanceIdentifier = aws_db_instance.postgres.identifier
@@ -183,7 +183,7 @@ resource "aws_cloudwatch_metric_alarm" "rds_write_iops_high" {
183183
datapoints_to_alarm = 3 # 3 of 5 datapoints must be high (grace for spikes)
184184
threshold = 500 # IOPS
185185
comparison_operator = "GreaterThanThreshold"
186-
treat_missing_data = "notBreaching"
186+
treat_missing_data = "breaching"
187187

188188
dimensions = {
189189
DBInstanceIdentifier = aws_db_instance.postgres.identifier
@@ -213,7 +213,7 @@ resource "aws_cloudwatch_metric_alarm" "rds_database_connections_high" {
213213
datapoints_to_alarm = 2 # 2 of 3 datapoints must be high (moderate grace)
214214
threshold = 180 # connections (~80% of max 225)
215215
comparison_operator = "GreaterThanThreshold"
216-
treat_missing_data = "notBreaching"
216+
treat_missing_data = "breaching"
217217

218218
dimensions = {
219219
DBInstanceIdentifier = aws_db_instance.postgres.identifier

0 commit comments

Comments
 (0)