Skip to content

Commit

Permalink
Remove period and namespace from scale low
Browse files Browse the repository at this point in the history
  • Loading branch information
wesleung-appzen committed Aug 20, 2019
1 parent 5bf0c73 commit 63b32b6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ resource "aws_cloudwatch_metric_alarm" "service_queue_high" {
period = "60"
stat = "Maximum"

# unit = "Count"
# unit = "Count"

dimensions {
QueueName = "${var.queue_name}"
Expand All @@ -184,11 +184,11 @@ resource "aws_cloudwatch_metric_alarm" "service_queue_low" {
alarm_description = "This alarm monitors ${var.queue_name} Queue count utilization for scaling down"
comparison_operator = "LessThanThreshold"
evaluation_periods = "1"
namespace = "AWS/SQS"
period = "60"
threshold = "${var.low_threshold}"
alarm_actions = ["${aws_appautoscaling_policy.scale_down.arn}"]

# namespace = "AWS/SQS"
# period = "60"
# statistic = "Average"
# metric_name = "ApproximateNumberOfMessagesVisible"

Expand All @@ -207,7 +207,7 @@ resource "aws_cloudwatch_metric_alarm" "service_queue_low" {
period = "60"
stat = "Maximum"

# unit = "Count"
# unit = "Count"

dimensions {
QueueName = "${var.queue_name}"
Expand All @@ -223,7 +223,7 @@ resource "aws_cloudwatch_metric_alarm" "service_queue_low" {
period = "60"
stat = "Maximum"

# unit = "Count"
# unit = "Count"

dimensions {
QueueName = "${var.queue_name}"
Expand Down

0 comments on commit 63b32b6

Please sign in to comment.