mirror of
https://github.com/Sea-Haven-Industries/payments-dashboard.git
synced 2026-10-07 03:32:08 +00:00
Merge d684e37c3a into fe386ee33f
This commit is contained in:
commit
900aad582b
1 changed files with 42 additions and 0 deletions
|
|
@ -759,6 +759,48 @@ Resources:
|
||||||
AlarmActions:
|
AlarmActions:
|
||||||
- !Sub arn:aws:sns:${AWS::Region}:${AWS::AccountId}:site-alerts
|
- !Sub arn:aws:sns:${AWS::Region}:${AWS::AccountId}:site-alerts
|
||||||
|
|
||||||
|
# Messages-present alarms on the async-invoke OnFailure DLQs, mirroring
|
||||||
|
# PayrollBatchDLQAlarm. Threshold > 0 on the visible-message count, ALARM-only.
|
||||||
|
ProcessPaymentCsvDLQAlarm:
|
||||||
|
Type: AWS::CloudWatch::Alarm
|
||||||
|
Properties:
|
||||||
|
AlarmName: payments-processPaymentCsv-async-dlq-messages
|
||||||
|
AlarmDescription: Failed processPaymentCsv async invocations landed in the DLQ
|
||||||
|
Namespace: AWS/SQS
|
||||||
|
MetricName: ApproximateNumberOfMessagesVisible
|
||||||
|
Dimensions:
|
||||||
|
- Name: QueueName
|
||||||
|
Value: !GetAtt ProcessPaymentCsvDLQ.QueueName
|
||||||
|
Statistic: Maximum
|
||||||
|
Period: 300
|
||||||
|
EvaluationPeriods: 1
|
||||||
|
Threshold: 0
|
||||||
|
ComparisonOperator: GreaterThanThreshold
|
||||||
|
TreatMissingData: notBreaching
|
||||||
|
# ALARM-only notification by convention — no OK/recovery action
|
||||||
|
AlarmActions:
|
||||||
|
- !Sub arn:aws:sns:${AWS::Region}:${AWS::AccountId}:site-alerts
|
||||||
|
|
||||||
|
ProcessPayrollEmailDLQAlarm:
|
||||||
|
Type: AWS::CloudWatch::Alarm
|
||||||
|
Properties:
|
||||||
|
AlarmName: payments-processPayrollEmail-async-dlq-messages
|
||||||
|
AlarmDescription: Failed processPayrollEmail async invocations landed in the DLQ
|
||||||
|
Namespace: AWS/SQS
|
||||||
|
MetricName: ApproximateNumberOfMessagesVisible
|
||||||
|
Dimensions:
|
||||||
|
- Name: QueueName
|
||||||
|
Value: !GetAtt ProcessPayrollEmailDLQ.QueueName
|
||||||
|
Statistic: Maximum
|
||||||
|
Period: 300
|
||||||
|
EvaluationPeriods: 1
|
||||||
|
Threshold: 0
|
||||||
|
ComparisonOperator: GreaterThanThreshold
|
||||||
|
TreatMissingData: notBreaching
|
||||||
|
# ALARM-only notification by convention — no OK/recovery action
|
||||||
|
AlarmActions:
|
||||||
|
- !Sub arn:aws:sns:${AWS::Region}:${AWS::AccountId}:site-alerts
|
||||||
|
|
||||||
ProcessPayrollEmailLogGroup:
|
ProcessPayrollEmailLogGroup:
|
||||||
Type: AWS::Logs::LogGroup
|
Type: AWS::Logs::LogGroup
|
||||||
Properties:
|
Properties:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue