How to create a dashboard cloudWatch that monitor the total number of ongoing instances of the specific step function

0

I need to create a dashboard that shows the total number of ongoing instances of the specific step function. But the step function service supports only these fields related to the execution: ExecutionThrottled, ExecutionsAborted, ExecutionsFailed, ExecutionsStarted, ExecutionsSucceeded, ExecutionsTimedOut. (https://docs.aws.amazon.com/step-functions/latest/dg/procedure-cw-metrics.html)

I thought the ongoing executions is calculated like this

ExecutionsRunning = ExecutionsStarted - ExecutionsSucceeded - ExecutionsFailed - ExecutionsAborted - ExecutionsTimedOut

But it seems incorrect. Does anyone have other ideas? Thanks!

1 Answer
1
Accepted Answer

Hi, can you extend the code of those StepFunctions? If yes, 1 way to achieve your goal is to define your own CW metric. You do +1 to it when you start a new execution of your Step Function and -1 when execution terminates (either normally or not: timeout, failed, etc.)

profile pictureAWS
EXPERT
answered 10 months ago
profile picture
EXPERT
reviewed 10 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions