-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DR2-1668 Use RATE for DLQ alarms. #44
Conversation
The issue is that if we get a message in a DLQ where there is already a message in the DLQ, we don't get another notification. Repeating messages for alarms that don't change state is a bit complicated so we'll go with this as a solution now. The period is 60 seconds so we shouldn't get massively spammed by a huge number of messages entering the DLQ at once.
sqs/main.tf
Outdated
QueueName = "${var.queue_name}-dlq" | ||
} | ||
metric_name = "ApproximateNumberOfMessagesVisible" | ||
period = 60 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just to add, should/could these period
s be added to a variable?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, can do. I've added a single variable as I can't see why we'd want different evaluation periods for the different metrics. I've defaulted them to 60 as this seems sensible.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good 👍
The issue is that if we get a message in a DLQ where there is already a
message in the DLQ, we don't get another notification.
Repeating messages for alarms that don't change state is a bit
complicated so we'll go with this as a solution now.
The period is 60 seconds so we shouldn't get massively spammed by a huge
number of messages entering the DLQ at once.