Skip to content

Commit

Permalink
fix(DMVP-4093): Changed FreeStorageSpace and FreeableMemory alert thr…
Browse files Browse the repository at this point in the history
…esholds
  • Loading branch information
viktoryathegreat committed May 6, 2024
1 parent 1af383e commit 80cd245
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions alerts.tf
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ module "cw_alerts" {
DBInstanceIdentifier = var.identifier
}
period = try(var.alarms.custom_values.memory.period, "1800")
threshold = try(var.alarms.custom_values.memory.threshold, data.aws_ec2_instance_type.this.memory_size * 0.2 * 1024 * 1024)
threshold = try(var.alarms.custom_values.memory.threshold, data.aws_ec2_instance_type.this.memory_size * 0.05 * 1024 * 1024)
equation = try(var.alarms.custom_values.memory.equation, "lt")
statistic = try(var.alarms.custom_values.memory.statistic, "avg")
},
Expand Down Expand Up @@ -96,8 +96,8 @@ module "cw_alerts" {
DBInstanceIdentifier = var.identifier
}
period = try(var.alarms.custom_values.disk.period, "300")
threshold = try(var.alarms.custom_values.disk.threshold, data.aws_db_instance.database.allocated_storage * 0.2)
equation = try(var.alarms.custom_values.disk.equation, "lt")
threshold = try(var.alarms.custom_values.disk.threshold, data.aws_db_instance.database.allocated_storage * 0.1 * 1024 * 1024 * 1024) #10% of storage in Bytes
equation = try(var.alarms.custom_values.disk.equation, "lte")
statistic = try(var.alarms.custom_values.disk.statistic, "avg")
},
],
Expand Down

0 comments on commit 80cd245

Please sign in to comment.