awerchniak / cdk-hiscores-tracker

Apache License 2.0
0 stars 0 forks source link

Create alarms #15

Open awerchniak opened 2 years ago

awerchniak commented 2 years ago

Create alarms for monitoring service health

awerchniak commented 2 years ago

One alarm to include: warning messages for GetAndParseHiScoresLambda. Following 824fcb6732dd92313de432c1d5e4ea6b1ccef078, we now emit a warning when the number of skills/activities rows in the HiScores API response changes. This alarm would address #6 by notifying users when this occurs.

We could create the alarm by creating a CloudWatch metrics filter on the log stream for that Lambda and creating an alarm when the sum of this metric exceeds 0 over a 1 hour (2 log events) period.