Browse Source

health: add dns_query module alarm (#8434)

Ilya Mashchenko 5 years ago
parent
commit
045a5af663
2 changed files with 13 additions and 0 deletions
  1. 1 0
      health/Makefile.am
  2. 12 0
      health/health.d/dns_query.conf

+ 1 - 0
health/Makefile.am

@@ -41,6 +41,7 @@ dist_healthconfig_DATA = \
     health.d/couchdb.conf \
     health.d/disks.conf \
     health.d/dnsmasq_dhcp.conf \
+    health.d/dns_query.conf \
     health.d/dockerd.conf \
     health.d/elasticsearch.conf \
     health.d/entropy.conf \

+ 12 - 0
health/health.d/dns_query.conf

@@ -0,0 +1,12 @@
+
+# detect dns query failure
+
+template: dns_query_time_query_time
+      on: dns_query_time.query_time
+  lookup: average -10s unaligned foreach *
+   units: ms
+   every: 10s
+    warn: $this == nan
+   delay: up 20s down 5m multiplier 1.5 max 1h
+    info: query round trip time
+      to: sysadmin