serverless-application-model icon indicating copy to clipboard operation
serverless-application-model copied to clipboard

LatestVersionErrorMetricGreaterThanZeroAlarm example not logging data

Open simon-chettle opened this issue 8 years ago • 5 comments

Description:

Following https://github.com/awslabs/serverless-application-model/blob/master/docs/safe_lambda_deployments.rst#traffic-shifting-using-codedeploy

The Alarm LatestVersionErrorMetricGreaterThanZeroAlarm does not work. I believe this might be because the dimensions for the alarm include a full ARN in the Resource rather than just a name like AliasErrorMetricGreaterThanZeroAlarm uses.

Steps to reproduce the issue:

  1. Use the example SAM template to create the 2 alarms
  2. Create an alarm manually pointing the newest lambda version (not yet live to all traffic)
  3. Force an error on your Lambda - both in the live and new version

Observed result: LatestVersionErrorMetricGreaterThanZeroAlarm has no data Manual test alarm for newest version has data

Expected result: LatestVersionErrorMetricGreaterThanZeroAlarm should have data

simon-chettle avatar Jul 23 '18 14:07 simon-chettle

Hello @simon-chettle , did you ever find out how to reach the expected result?

sgrinich-98point6 avatar May 09 '19 23:05 sgrinich-98point6

Clearing out old Github Issues that do not have traction/haven't had responses in over a year. If this is still an issue or needs attention please create a new Issues (linking to this one can be helpful) and we can re-look into things.

jfuss avatar Mar 01 '22 21:03 jfuss

I can't seem to get LatestVersionErrorMetricGreaterThanZeroAlarm or AliasErrorMetricGreaterThanZeroAlarm to work at all, neither seem to be valid alarms anymore.

Manouchehri avatar Feb 01 '23 00:02 Manouchehri

@Manouchehri Did you get it to work

MacAndersonUche avatar Mar 20 '24 16:03 MacAndersonUche

I think I made my own alarms and used those instead.

Manouchehri avatar Mar 20 '24 18:03 Manouchehri