serverless-plugin-aws-alerts icon indicating copy to clipboard operation
serverless-plugin-aws-alerts copied to clipboard

Add ability to blacklist alarm on handler

Open Limess opened this issue 7 years ago • 2 comments

This is a Feature Proposal

Description

Add an option to blacklist a function alarm for a given handler.

Use case

I want to add a function level alarm with a given config to all my defined lambdas except one. So far as a I can tell, there's no way to remove an alarm defined in the global alerts.function section from each lambda, only override it's properties.

This arose from using https://github.com/FidelLimited/serverless-plugin-warmup which adds an additional lambda function and handler definition. When alerts.function is defined, the alarms then get added to this warmup lambda. We don't wish to track the duration of this lambda execution currently. I can easily see it applying to other lambdas though.

The current workaround would be to manually add the desired alarm to every lambda definition. In our case we currently have a deployment with 25 lambdas so this is a bit cumbersome.

Limess avatar Jan 12 '18 16:01 Limess

This is a really good idea. I can't look at this right now. If anyone wants to submit a PR I'd be happy to review.

johncmckim avatar Jun 25 '18 05:06 johncmckim

any update yet?

AlexSun98 avatar Sep 10 '18 05:09 AlexSun98