File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
infrastructure/stacks/api-layer Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -495,27 +495,26 @@ 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 are any objects in the backup S3 bucket, indicating a delivery failure to Splunk."
498+ alarm_description = " Triggers when there is a delivery failure from Firehose to the Splunk backup S3 bucket"
499+ metric_name = " BackupToS3.Records"
499500 namespace = " AWS/Firehose"
500- metric_name = " NumberOfObjects"
501501 statistic = " Sum"
502- period = 3600 # 1 hour
502+ period = 300
503503 evaluation_periods = 1
504504 threshold = 0
505505 comparison_operator = " GreaterThanThreshold"
506506 treat_missing_data = " notBreaching"
507507
508508 dimensions = {
509- BucketName = " eli-splunk"
510- StorageType = " AllStorageTypes"
509+ DeliveryStreamName = module.splunk_forwarder.firehose_delivery_stream_name
511510 }
512511
513512 alarm_actions = [aws_sns_topic . cloudwatch_alarms . arn ]
514513
515514 tags = {
516515 Environment = var.environment
517516 AlertType = " data-delivery"
518- Service = " s3 "
517+ Service = " firehose "
519518 Severity = " high"
520519 ManagedBy = " terraform"
521520 }
You can’t perform that action at this time.
0 commit comments