Is it possible to create an alert about batch job failure? If so, use which option in Google monitoring? I look in the VM options, but as far as I understand, there is no such option.
Case: Started Batch Job instance for processing some pipeline and got an error which Failed all processing. How do we catch these errors and send alerts?
Batch hasn’t provided option on Cloud Monitoring. We consider using Pub/Sub be a good start for subscribing on job state change notifications. If you think Cloud Monitoring support would benefit your case better, could you describe more detail about your wanted workflow?
Is it possible to add custom messages while using these notifications? for example:
“notifications”: [
{“pubsubTopic”: “”,
“message”: {
“type”: “JOB_STATE_CHANGED”,
“newJobState”: “SUCCEEDED”,
“data”: {
“engine”: “my_engine”
}}} ]