Closed nalbion closed 3 years ago
I managed to get this working:
custom:
alerts:
definitions:
authExceptions:
namespace: Authorization
metric: Count
threshold: 1
statistic: Maximum
period: 60
evaluationPeriods: 1
comparisonOperator: GreaterThanThreshold
omitDefaultDimension: true
dimensions:
- Name: ServiceName
Value: ${self:service}-${opt:stage, self:custom.stage}-authorizer
- Name: LogGroup
Value: ${self:service}-${opt:stage, self:custom.stage}-authorizer
- Name: ServiceType
Value: AWS::Lambda::Function
- Name: ResponseType
Value: Error
This is a Feature Proposal
Description
My application is using aws-embedded-metrics to create custom CloudWatch metrics:
I can manually create a CloudWatch alarm that will correctly monitor my custom metric. When I click "Edit" and view the source tab it looks like:
I've tried to reproduce this alarm using
serverless-plugin-aws-alerts
:Unfortunately, the generated
metrics
list does not contain the extra fields as my manually-generated alarm:Additional Data