Skip to content

Commit

Permalink
Pinpoint dashboard (#1369)
Browse files Browse the repository at this point in the history
  • Loading branch information
sastels authored Jun 11, 2024
1 parent 329afb0 commit ba3bf69
Show file tree
Hide file tree
Showing 6 changed files with 596 additions and 1 deletion.
28 changes: 28 additions & 0 deletions aws/common/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -212,3 +212,31 @@ output "subnet_cidr_blocks" {
output "sns_monthly_spend_limit" {
value = var.sns_monthly_spend_limit
}

output "celery_queue_prefix" {
value = var.celery_queue_prefix
}

output "sqs_send_sms_high_queue_delay_warning_arn" {
value = var.cloudwatch_enabled ? aws_cloudwatch_metric_alarm.sqs-send-sms-high-queue-delay-warning[0].arn : ""
}

output "sqs_send_sms_high_queue_delay_critical_arn" {
value = var.cloudwatch_enabled ? aws_cloudwatch_metric_alarm.sqs-send-sms-high-queue-delay-critical[0].arn : ""
}

output "sqs_send_sms_medium_queue_delay_warning_arn" {
value = var.cloudwatch_enabled ? aws_cloudwatch_metric_alarm.sqs-send-sms-medium-queue-delay-warning[0].arn : ""
}

output "sqs_send_sms_medium_queue_delay_critical_arn" {
value = var.cloudwatch_enabled ? aws_cloudwatch_metric_alarm.sqs-send-sms-medium-queue-delay-critical[0].arn : ""
}

output "sqs_send_sms_low_queue_delay_warning_arn" {
value = var.cloudwatch_enabled ? aws_cloudwatch_metric_alarm.sqs-send-sms-low-queue-delay-warning[0].arn : ""
}

output "sqs_send_sms_low_queue_delay_critical_arn" {
value = var.cloudwatch_enabled ? aws_cloudwatch_metric_alarm.sqs-send-sms-low-queue-delay-critical[0].arn : ""
}
2 changes: 1 addition & 1 deletion aws/pinpoint_to_sqs_sms_callbacks/cloudwatch_alarms.tf
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ resource "aws_cloudwatch_metric_alarm" "pinpoint-sms-success-rate-warning" {
}
}

resource "aws_cloudwatch_metric_alarm" "pinpoint-sms-success-rate-canadian-numbers-critical" {
resource "aws_cloudwatch_metric_alarm" "pinpoint-sms-success-rate-critical" {
count = var.cloudwatch_enabled ? 1 : 0
alarm_name = "pinpoint-sms-success-rate-canadian-numbers-critical"
alarm_description = "Pinpoint SMS success rate to Canadian numbers is below 25% over 2 consecutive periods of 12 hours"
Expand Down
Loading

0 comments on commit ba3bf69

Please sign in to comment.