I have a Glue PySpark job which has failed after approx 2 mins with an AnalysisException and a Run Status of Failed. I want to detect it for a CloudWatch alarm. In CloudWatch metrics I'm expecting it to record a count of 1 over the period, but it's recording 0. I'm using the following metric config:
MetricName: glue.driver.aggregate.numFailedTasks
JobRunId: ALL
JobName: <MyGlueJobName>
Statistic: Sum
Period: 1 min
Type: Count
It appears other metrics are working e.g. glue.driver.jvm.heap.used but not numFailedTasks. Am I doing something wrong?