Add monitoring for cron job
Change-Id: I710b65decf6697d0bb5d21fc3fc2d332b78119c5
Closes-bug: PROD-21073
diff --git a/linux/meta/prometheus.yml b/linux/meta/prometheus.yml
index ca4ba3d..99cb54c 100644
--- a/linux/meta/prometheus.yml
+++ b/linux/meta/prometheus.yml
@@ -188,6 +188,15 @@
annotations:
summary: "Cron process is down"
description: "The cron process on the {{ $labels.host }} node is down."
+ CronJobFailure:
+ if: >-
+ min(cron_job_status) by (name, host) == 0
+ labels:
+ severity: major
+ service: system
+ annotations:
+ summary: "Cron job failure"
+ description: "The {{ $labels.name }} cron job on the {{ $labels.host }} node failed."
SshdProcessDown:
if: >-
procstat_running{process_name="sshd"} == 0