瀏覽代碼

Add monitoring for cron job

Change-Id: I710b65decf6697d0bb5d21fc3fc2d332b78119c5
Closes-bug: PROD-21073
pull/160/merge
Michal Kobus 6 年之前
父節點
當前提交
697ce4bf04
共有 1 個檔案被更改,包括 9 行新增0 行删除
  1. +9
    -0
      linux/meta/prometheus.yml

+ 9
- 0
linux/meta/prometheus.yml 查看文件

@@ -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…
取消
儲存