This commit is contained in:
Radon Rosborough 2021-07-11 07:50:04 +00:00
parent 11d3ee8885
commit 45a777ed69
2 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@
"metrics_collected": {
"cpu": {
"measurement": [
"time_active"
"usage_active"
],
"metrics_collection_interval": 60
},

View File

@ -4,7 +4,7 @@ resource "aws_cloudwatch_metric_alarm" "server_cpu" {
alarm_name = "riju-server-cpu-high"
comparison_operator = "GreaterThanOrEqualToThreshold"
evaluation_periods = "30"
metric_name = "cpu_time_active"
metric_name = "cpu_usage_active"
namespace = "CWAgent"
period = "60"
statistic = "Maximum"