health: add dns_query module alarm (#8434)
Ilya Mashchenko committed
Mar 19, 2020 at 16:18 UTC
045a5af663c86edcf79e118a7215bff52ebf7224
2 files changed
+13
health/Makefile.am
+1
@@ -41,6 +41,7 @@ dist_healthconfig_DATA = \
41
health.d/couchdb.conf \
42
health.d/disks.conf \
43
health.d/dnsmasq_dhcp.conf \
44
+ health.d/dns_query.conf \
45
health.d/dockerd.conf \
46
health.d/elasticsearch.conf \
47
health.d/entropy.conf \
health/health.d/dns_query.conf
new
+12
@@ -0,0 +1,12 @@
1
+
2
+# detect dns query failure
3
+
4
+template: dns_query_time_query_time
5
+ on: dns_query_time.query_time
6
+ lookup: average -10s unaligned foreach *
7
+ units: ms
8
+ every: 10s
9
+ warn: $this == nan
10
+ delay: up 20s down 5m multiplier 1.5 max 1h
11
+ info: query round trip time
12
+ to: sysadmin