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!

datnt
已提問 1 年前檢視次數 429 次
1 個回答
1
已接受的答案

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
專家
已回答 1 年前
profile picture
專家
已審閱 1 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南