Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F33307085
D13429.1768796723.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D13429.1768796723.diff
View Options
diff --git a/services/terraform/remote/aws_cloudwatch_alarms.tf b/services/terraform/remote/aws_cloudwatch_alarms.tf
--- a/services/terraform/remote/aws_cloudwatch_alarms.tf
+++ b/services/terraform/remote/aws_cloudwatch_alarms.tf
@@ -248,3 +248,37 @@
alarm_actions = [aws_sns_topic.blob_error_topic.arn]
}
+resource "aws_cloudwatch_metric_alarm" "blob_memory_utilization" {
+ alarm_name = "ecs-memory-utilization-90"
+ comparison_operator = "GreaterThanOrEqualToThreshold"
+ evaluation_periods = 1
+ metric_name = "MemoryUtilization"
+ namespace = "AWS/ECS"
+ period = 60
+ statistic = "Average"
+ threshold = 90
+ alarm_description = "Alarm when Blob service memory utilization exceeds 90%"
+ dimensions = {
+ ClusterName = aws_ecs_cluster.comm_services.name
+ ServiceName = aws_ecs_service.blob_service.name
+ }
+ alarm_actions = [aws_sns_topic.blob_error_topic.arn]
+}
+
+
+resource "aws_cloudwatch_metric_alarm" "blob_cpu_utilization" {
+ alarm_name = "ecs-cpu-utilization-90"
+ comparison_operator = "GreaterThanOrEqualToThreshold"
+ evaluation_periods = 1
+ metric_name = "CPUUtilization"
+ namespace = "AWS/ECS"
+ period = 60
+ statistic = "Average"
+ threshold = 90
+ alarm_description = "Alarm when Blob service CPU utilization exceeds 90%"
+ dimensions = {
+ ClusterName = aws_ecs_cluster.comm_services.name
+ ServiceName = aws_ecs_service.blob_service.name
+ }
+ alarm_actions = [aws_sns_topic.blob_error_topic.arn]
+}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Jan 19, 4:25 AM (5 h, 21 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5954328
Default Alt Text
D13429.1768796723.diff (1 KB)
Attached To
Mode
D13429: [terraform] sets up cpu and memory and utilization alarms for blob service
Attached
Detach File
Event Timeline
Log In to Comment