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 réponse
1
Réponse acceptée

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
répondu il y a un an
profile picture
EXPERT
vérifié il y a un an

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions