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
질문됨 일 년 전425회 조회
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
전문가
답변함 일 년 전
profile picture
전문가
검토됨 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠