Skip to content

Log Alarm L2 Construct #960

Description

@rodrigotuna

Description

Add a LogAlarm L2 construct to aws-cdk-lib/aws-cloudwatch so customers can define CloudWatch log alarms (alarms evaluated against the results of a scheduled CloudWatch Logs query) in CDK, without hand-writing the AWS::CloudWatch::LogAlarm L1 resource.

A log alarm runs a scheduled Logs query (query string + aggregation over one or more log groups) and compares the aggregated result against a threshold using an M-out-of-N evaluation. It can also surface matching log lines in the alarm notification. The construct extends AlarmBase (like Alarm, CompositeAlarm, and PromQLAlarm), reuses the existing ComparisonOperator/TreatMissingData enums, and is interchangeable anywhere an IAlarm is accepted.

Related: PromQL Alarm L2.

Proposed by: @rodrigotuna

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions