2

Need to generate CloudWatch Alarm for API Gateway and Lambda functions.

For API Gateway CloudWatch Alarm should be generated if 5XX Error count is 10% of total request count at given period (e.g. 5 minutes).

Similarly, We need to add a metric if Maximum Latency 6% of total request count > 4 seconds.

For such type of metric looks like we need a combination of metric like Sum of total requests and than need to calculate percentage of errors.

We have Math Expressions/Metric math which might be used. Is there any other way to achieve this?

Any help is appreciated!

1 Answer 1

4

EDIT: Its now possible to create alarms on Metric expressions from the CloudWatch Console.

Original Answer below:

Unfortunately its not possible to create alarms based on Metric expressions in CloudWatch. Your best bet may be the M of N thresholds in alarms, for example: If num_of_errors > 5 for 3 datapoints in 5 minutes. Its not exactly what your asking for, but may be a good start. Best of luck!

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.