|
/etc/prometheus/rules/adressayta.yml > adressayta
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
alert: TargetDown
expr: up == 0
for: 3m
labels:
severity: warning
annotations:
description: '{{ $labels.host }} ({{ $labels.role }}) недоступен для Prometheus'
summary: 'Target down: {{ $labels.job }} {{ $labels.instance }}'
|
|
/etc/prometheus/rules/adressayta.yml > homevpn
|
|
|
alert: HomeVpnDown
expr: homevpn_ok{host="lenovotc"}
== 0
for: 2m
labels:
severity: critical
annotations:
description: Оба пути wgnet/wgnet2 не пингуются или юниты down
summary: Home VPN на TC недоступен (ни S1, ни S3)
|
|
|
|
|
|
|