cdklabs / cdk-monitoring-constructs

Easy-to-use CDK constructs for monitoring your AWS infrastructure
https://constructs.dev/packages/cdk-monitoring-constructs
Apache License 2.0
480 stars 70 forks source link

feat(cloudwatch): add addMinIncomingLogsAlarm #310

Closed echeung-amzn closed 1 year ago

echeung-amzn commented 1 year ago

Add ability to alarm on minimum number from IncomingLogEvents metric for a given CloudWatch log group. This is useful for detecting issues that would surface as missing incoming logs as a symptom (e.g., improper permissions, service outage/configuration issue, etc.).

All available metrics: https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatch-Logs-Monitoring-CloudWatch-Metrics.html


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

niebloomj commented 1 year ago

Anyone working on doing the same thing for maxIncomingAlarms for detecting errors? I can take it if not.

echeung-amzn commented 1 year ago

@niebloomj I wasn't; feel free to pick that up.

niebloomj commented 1 year ago

Kk i'll try to find some time!