Я хочу написать правило, которое молчит в течение 7–19 часов, и проверять, чтобы клиенты звездочки не были ниже 3, и добавить другое правило, которое проверяет, что клиенты не должны быть ниже 1 клиента в период с 19 до 7 утра.
- name: The number of active noc extention is low
rules:
- alert: The number of active noc operator is lower than 3
expr: asterisk_noc_ex_register < 3
for: 5s
labels:
instance: monitoring
severity: critical
annotations:
summary: "{{ $labels.host }} number of active noc operator is {{ humanize $value}}"
description: "{{ $labels.host }} number of active operator is {{ humanize $value}}"
Спасибо