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
443 stars 55 forks source link

Add Support for Metric Filters on CloudWatch LogGroups #510

Open pscheri opened 2 months ago

pscheri commented 2 months ago

Feature scope

All Log Groups

Describe your suggested feature

We need a way of creating Metric Filters on CloudWatch Logs, to allow us to filter based on text patterns and create alarms automatically.

Today with monitor_logs, it's possible to filter based on text patterns on a log group and add that to a dashboard, but the only available alarms are for LogGroup metrics (ingestion count for example).

It'd be great to have application log analysis capabilities as a native feature.