summaryrefslogtreecommitdiffstats
path: root/health
diff options
context:
space:
mode:
authorIlya Mashchenko <ilya@netdata.cloud>2020-03-19 16:18:13 +0300
committerGitHub <noreply@github.com>2020-03-19 16:18:13 +0300
commit045a5af663c86edcf79e118a7215bff52ebf7224 (patch)
tree6979f1d8f875ab01b822bbf87e5362495a7576cb /health
parent8fb94cecf861aa3740f7ce3f085e07803887f260 (diff)
health: add dns_query module alarm (#8434)
Diffstat (limited to 'health')
-rw-r--r--health/Makefile.am1
-rw-r--r--health/health.d/dns_query.conf12
2 files changed, 13 insertions, 0 deletions
diff --git a/health/Makefile.am b/health/Makefile.am
index 5ed8523fcb..64bfd3b4ab 100644
--- a/health/Makefile.am
+++ b/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 \
diff --git a/health/health.d/dns_query.conf b/health/health.d/dns_query.conf
new file mode 100644
index 0000000000..113c950e6f
--- /dev/null
+++ b/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