vanerleo
Hi, cant seem to figure out how to provide lambda Invocations tracking in global-alerting.json can you please provide a sample?
#15 · closed · 1 comments
Hi, cant seem to figure out how to provide lambda Invocations tracking in global-alerting.json can you please provide a sample?
hi i always thought that the invocations count would be the least informative alarm... thats why i omitted it :) The following example should create two alarms Throttles and Invocations. The key name is the name of the metric that will be used. ``` [ { "notificationTopicStageMapping": { "dev": "your-dev-sns-topic", "testing": "your-testing-sns-topic", "staging": "your-staging-sns-topic", "live": "your-live-sns-topic" }, "alerts": { "Throttles": { "enabled": true, "alarmNamespace": "AWS/Lambda", "description": "(Global) Alarm if function has more than 50 throttled requests", "alarmStatisticType": "Sum", "alarmPeriod": "60", "alarmThreshold": "50", "comparisonOperator": "GreaterThanOrEqualToThreshold", "evaluationPeriod": "1" }, "Invocations": { "enabled": true, "alarmNamespace": "AWS/Lambda", "description": "(Global) Alarm if function is called more than 50 times per minute", "alarmStatisticType": "Sum", "alarmPeriod": "60", "alarmThreshold": "50", "comparisonOperator": "GreaterThanOrEqualToThreshold", "evaluationPeriod": "1" } } } ] ```