0

Is it possible to set an alarm when lambda functions take more than a specific time? ex:- I want to set alarm if my lambda function takes more than 10 seconds to execute

1 Answer 1

1

AWS web console: CloudWatch -> Alarm -> Create Alarm

  1. Select metric: Rely on the standard AWS lambda metric Duration: AWS lambda metric - Duration

  2. Set the alarm condition

Alarm threshold

then set Notification etc. depends on your needs.

  1. Set the alarm name and description.

As a result you will get a needed alarm. (Screen is with lower threshold (2000 ms))

Created Alarm

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.