Skip to content

Commit

Permalink
Set CloudWatch alarm names to match DLQ
Browse files Browse the repository at this point in the history
  • Loading branch information
patchwork01 committed Dec 13, 2024
1 parent e5a8f15 commit d173e3e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions java/cdk/src/main/java/sleeper/cdk/util/Utils.java
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,7 @@ public static String normaliseSize(String size) {
public static void createAlarmForDlq(Construct scope, String id, String description, Queue dlq, Topic topic) {
Alarm alarm = Alarm.Builder
.create(scope, id)
.alarmName(dlq.getQueueName())
.alarmDescription(description)
.metric(dlq.metricApproximateNumberOfMessagesVisible()
.with(MetricOptions.builder().statistic("Sum").period(Duration.seconds(60)).build()))
Expand Down

0 comments on commit d173e3e

Please sign in to comment.