Setting Alarms for Step Functions - Amazon Step Functions
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China.

Setting Alarms for Step Functions

You can use Amazon CloudWatch alarms to perform actions. For example, if you want to know when an alarm threshold is reached, you can set an alarm to send a notification to an Amazon SNS topic or to send an email when the StateMachinesFailed metric rises above a certain threshold.

To set an alarm on a metric

  1. Sign in to the Amazon Web Services Management Console and open the CloudWatch console.

  2. Choose Metrics, and on the All Metrics tab, choose States.

    If you ran any executions recently, you will see up to four types of metrics:

    • Execution Metrics

    • Activity Function Metrics

    • Lambda Function Metrics

    • Service Integration Metrics

  3. Choose a metric type to see a list of metrics.

  4. Choose a metric, and then choose Graphed metrics.

  5. Choose 
       bell
    next to a metric on the list.

    The Create Alarm page is displayed.

  6. Enter the values for the Alarm threshold and Actions, and then choose Create Alarm.

For more information about setting and using CloudWatch alarms, see Creating Amazon CloudWatch Alarms in the Amazon CloudWatch User Guide.