Skip to content

Commit cdc098f

Browse files
committed
これでUDCO2から取得するのが止まってるかどうかが通知できそうな気がする。
1 parent c6376e7 commit cdc098f

File tree

1 file changed

+6
-0
lines changed
  • itamae/roles/prometheus/templates/etc/prometheus

1 file changed

+6
-0
lines changed

itamae/roles/prometheus/templates/etc/prometheus/rules.yml

+6
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,9 @@ groups:
77
annotations:
88
summary: CO2濃度高すぎ!
99
description: "換気をしましょう。現在の濃度: {{ $value }}ppm"
10+
- alert: monitoring stopped
11+
expr: time() - udco2s_CO2{job="udco2s_last"} > 1800
12+
for: 1m
13+
annotations:
14+
summary: CO2モニタリング停止
15+
description: "CO2モニタリングが停止しています。"

0 commit comments

Comments
 (0)