// Aula 29 - Regras de alerta parte2 groups: - name: node_alerta rules: - record: job:up:avg expr: avg without(instance)(up{job="node"}) - alert: MuitosHostsInativos expr: (avg without(instance)(up{job="windows"}) < 0.5 and on() hour() >= 8 < 18) for: 5m