Sometimes, job runs for hours because of some underlying issue. lets take an example for my use case.
We have one orchestration job which send mail notification on completion. But, due to some incorrect mail id mentioned in the job, job is unable to find the Id and is running for more than 5 hours and will run more if don’t stop it. We could see error message in the logs.
Returns the current time of the Data Collector machine as a java.util.Date object. Use in conditions for gauge metric rules.For example, the default rule for the Runtime Statistics Gauge metric that checks whether the pipeline is idle includes the following condition:
${time:now() - value() > 120000}
The alert is triggered when the current time is greater than the time of the last received record by 120,000 milliseconds.