Pārlūkot izejas kodu

Add monitoring for cron job

Change-Id: I710b65decf6697d0bb5d21fc3fc2d332b78119c5
Closes-bug: PROD-21073
pull/160/merge
Michal Kobus pirms 6 gadiem
vecāks
revīzija
697ce4bf04
1 mainītis faili ar 9 papildinājumiem un 0 dzēšanām
  1. +9
    -0
      linux/meta/prometheus.yml

+ 9
- 0
linux/meta/prometheus.yml Parādīt failu

@@ -188,6 +188,15 @@ server:
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

Notiek ielāde…
Atcelt
Saglabāt