Sfoglia il codice sorgente

Add monitoring for cron job

Change-Id: I710b65decf6697d0bb5d21fc3fc2d332b78119c5
Closes-bug: PROD-21073
pull/160/merge
Michal Kobus 6 anni fa
parent
commit
697ce4bf04
1 ha cambiato i file con 9 aggiunte e 0 eliminazioni
  1. +9
    -0
      linux/meta/prometheus.yml

+ 9
- 0
linux/meta/prometheus.yml Vedi File

@@ -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

Loading…
Annulla
Salva