Creating alarms automatically

I’m a bit spoilt perhaps with Apex Up, but I’m having to support a series of sls functions and I am puzzled how to quickly set up “RED” alarms on a series of API gateways setup with the help of the serverless framework.

Support alerts for API Gateway metrics · Issue #104 · ACloudGuru/serverless-plugin-aws-alerts · GitHub confuses me…

Example metrics I want in place are:

  • http.count sum 100 1m
  • http.5xx sum 1 1m
  • http.4xx sum 50 5m
  • http.latency avg 1000 5m

Any hints how to automate these please?