Monitor `apt-mirror` update status.

This commit is contained in:
Kazuhiro MUSASHI 2020-10-24 13:06:54 +09:00
parent a0907aade4
commit c6531b06a0
1 changed files with 8 additions and 0 deletions

View File

@ -10,3 +10,11 @@ groups:
summary: "Instance {{ $labels.instance }} requires rebooting." summary: "Instance {{ $labels.instance }} requires rebooting."
description: "{{ $labels.instance }} requires rebooting." description: "{{ $labels.instance }} requires rebooting."
- alert: apt-mirror
expr: time() - file_stat_modif_time_seconds{path="/var/spool/apt-mirror/updated"} > 87000
for: 12h
labels:
severity: error
annotations:
summary: "apt-mirror is not updated."
description: "apt-mirror is not updated."