Browse Source

add for in dns rules

master 0.2.2
parent
commit
ec0c5bd466
  1. 2
      rules/dns.yaml

2
rules/dns.yaml

@ -2,6 +2,7 @@ groups:
- name: dns
rules:
- alert: NsMismatch
for: 5m
expr:
count by (Name, Target, host, job) (dns_lg_answer_section_rr_info{Type="NS"}) != on (Name) group_left count by (Name) (group by (instance, Name) (dns_lg_answer_section_rr_info{Type="NS"}))
labels:
@ -11,6 +12,7 @@ groups:
description: The NS {{ $labels.Target }} has not been found on all name servers of zone {{ $labels.Name }}
- alert: SerialMismatch
for: 5m
expr:
count by (Name, host, job) (group by(Name, Serial) (dns_lg_answer_section_rr_info{Type="SOA"})) > 1
labels:

Loading…
Cancel
Save