File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed
infrastructure/stacks/api-layer Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -495,26 +495,27 @@ resource "aws_cloudwatch_metric_alarm" "acm_expiry_alarms" {
495495# Splunk backup S3 bucket delivery failure alarm
496496resource "aws_cloudwatch_metric_alarm" "splunk_backup_delivery_failure" {
497497 alarm_name = " SplunkBackupS3DeliveryFailure"
498- alarm_description = " Triggers when there is a delivery failure from Firehose to the Splunk backup S3 bucket"
498+ alarm_description = " Triggers when there are any objects in the backup S3 bucket, indicating a delivery failure to Splunk. "
499499 namespace = " AWS/Firehose"
500- metric_name = " DeliveryToS3.Failed "
500+ metric_name = " NumberOfObjects "
501501 statistic = " Sum"
502- period = 300 # 5 minutes
502+ period = 3600 # 1 hour
503503 evaluation_periods = 1
504- threshold = 1
505- comparison_operator = " GreaterThanOrEqualToThreshold "
504+ threshold = 0
505+ comparison_operator = " GreaterThanThreshold "
506506 treat_missing_data = " notBreaching"
507507
508508 dimensions = {
509- DeliveryStreamName = module.splunk_forwarder.firehose_delivery_stream_name
509+ BucketName = " eli-splunk"
510+ StorageType = " AllStorageTypes"
510511 }
511512
512513 alarm_actions = [aws_sns_topic . cloudwatch_alarms . arn ]
513514
514515 tags = {
515516 Environment = var.environment
516517 AlertType = " data-delivery"
517- Service = " firehose "
518+ Service = " s3 "
518519 Severity = " high"
519520 ManagedBy = " terraform"
520521 }
You can’t perform that action at this time.
0 commit comments