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 年前427 查看次数
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 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则

相关内容