-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: health check alarm for submission lambda invocations (#703)
Add alarms that will trigger if no submission lambda function invocations have been seen in an expected period. 1. `SubmissionLambdaNoInvocationsCoreHours`: triggers if there has not been at least one invocation between 9am UTC and 6am UTC the next day. Between 6am and 9am, the alarm will always be in a non-breaching state. 2. `SubmissionLambdaInvocationsAnomaly`: uses anomaly detection and will trigger if the invocations are low for a given period. Neither alarm has an SNS action defined. This will allow us to observe and adjust their behaviour before they begin posting to Slack for a breaching state.
- Loading branch information
Showing
4 changed files
with
83 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
locals { | ||
lambda_submission_expect_invocation_in_period = var.env == "production" ? var.lambda_submission_expect_invocation_in_period : 60 * 24 # expect once a day in non-prod envs | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters