Skip to content
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

Merged
merged 5 commits into from
Jun 14, 2024
Merged

Conversation

MancunianSam
Copy link
Contributor

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.

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
Copy link
Contributor

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 periods be added to a variable?

Copy link
Contributor Author

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.

Copy link
Contributor

@anthonyhashemi anthonyhashemi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good 👍

@MancunianSam MancunianSam merged commit f90ba93 into main Jun 14, 2024
1 check passed
@MancunianSam MancunianSam deleted the DR2-1668-use-rate-of-messages branch June 14, 2024 09:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants