-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create Alert for Errors in API Application Logs #1475
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
New fancy alarms!
infra/modules/monitoring/main.tf
Outdated
resource "aws_cloudwatch_log_metric_filter" "service_error_filter" { | ||
|
||
name = "service-error-filter" | ||
pattern = "%ERROR%" # pattern can find events in unstructured logs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
⭐⭐ (optional but seriously consider)
Nice! It this a regex? Can we update it to (ERROR|Exception)?
I feel like exception
is more commonly going to be in the message than error
is. In python, at least
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is! I found this which was super helpful
Summary
Fixes #1033
Time to review: x mins
Changes proposed
Context for reviewers
Additional information
Metric filter from the cloudwatch log group side:
the alarm: