Skip to content

Commit

Permalink
add new alarms and instance for testing (#4691)
Browse files Browse the repository at this point in the history
* add new alarms and instance for testing

* add url to description and fix typo in other alarm description

* remove test instance

* improve description
  • Loading branch information
robertsweetman authored Jan 25, 2024
1 parent 3f559b6 commit c1766ea
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion terraform/modules/baseline_presets/cloudwatch_metric_alarms.tf
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,20 @@ locals {
period = "60"
statistic = "Maximum"
threshold = "95"
alarm_description = "Triggers if memory usage is continually high for one hour. See See https://dsdmoj.atlassian.net/wiki/spaces/DSTT/pages/4326523370"
alarm_description = "Triggers if memory usage is continually high for one hour. See https://dsdmoj.atlassian.net/wiki/spaces/DSTT/pages/4326523370"
alarm_actions = var.options.cloudwatch_metric_alarms_default_actions
}
instance-or-cloudwatch-agent-stopped = {
comparison_operator = "LessThanOrEqualToThreshold"
evaluation_periods = "5"
datapoints_to_alarm = "5"
metric_name = "CPU_IDLE"
period = "60"
namespace = "CWAgent"
statistic = "SampleCount"
threshold = "0"
treat_missing_data = "breaching"
alarm_description = "Triggers if the instance or cloudwatch agent is stopped after 5 minutes since the metric will not be collected. See https://dsdmoj.atlassian.net/wiki/spaces/DSTT/pages/4671340764/EC2+instance-or-cloudwatch-agent-stopped+alarm"
alarm_actions = var.options.cloudwatch_metric_alarms_default_actions
}
}
Expand Down Expand Up @@ -139,6 +152,19 @@ locals {
alarm_description = "Triggers if the amount of CPU time spent waiting for I/O to complete is continually high for 3 hours. See https://dsdmoj.atlassian.net/wiki/spaces/DSTT/pages/4325900634"
alarm_actions = var.options.cloudwatch_metric_alarms_default_actions
}
instance-or-cloudwatch-agent-stopped = {
comparison_operator = "LessThanOrEqualToThreshold"
evaluation_periods = "5"
datapoints_to_alarm = "5"
metric_name = "cpu_usage_idle"
period = "60"
namespace = "CWAgent"
statistic = "SampleCount"
threshold = "0"
treat_missing_data = "breaching"
alarm_description = "Triggers if the instance or cloudwatch agent is stopped after 5 minutes since the metric will not be collected. See https://dsdmoj.atlassian.net/wiki/spaces/DSTT/pages/4671340764/EC2+instance-or-cloudwatch-agent-stopped+alarm"
alarm_actions = var.options.cloudwatch_metric_alarms_default_actions
}
}

ec2_instance_cwagent_collectd_service_status_os = {
Expand Down

0 comments on commit c1766ea

Please sign in to comment.