summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIlya Mashchenko <ilya@netdata.cloud>2024-01-06 19:25:02 +0200
committerGitHub <noreply@github.com>2024-01-06 19:25:02 +0200
commitf133ae05701f6741d4c8753dca48e2ceade5b061 (patch)
treebcf9d569a87283a35d7f41a49dd98b1b2e58664c
parent08c38340b3f81ccbcf376b03e5e48133515937d4 (diff)
health: add httpcheck bad header alert (#16736)
-rw-r--r--health/health.d/httpcheck.conf15
1 files changed, 15 insertions, 0 deletions
diff --git a/health/health.d/httpcheck.conf b/health/health.d/httpcheck.conf
index da5dec797a..3d32dedbf4 100644
--- a/health/health.d/httpcheck.conf
+++ b/health/health.d/httpcheck.conf
@@ -42,6 +42,21 @@ component: HTTP endpoint
info: Percentage of HTTP responses from ${label:url} with unexpected status in the last 5 minutes
to: webmaster
+ template: httpcheck_web_service_bad_header
+ on: httpcheck.status
+ class: Errors
+ type: Web Server
+component: HTTP endpoint
+ lookup: average -5m unaligned percentage of bad_header
+ every: 10s
+ units: %
+ warn: $this >= 10 AND $this < 40
+ crit: $this >= 40
+ delay: down 5m multiplier 1.5 max 1h
+ summary: HTTP check for ${label:url} unexpected header
+ info: Percentage of HTTP responses from ${label:url} with unexpected header in the last 5 minutes
+ to: webmaster
+
template: httpcheck_web_service_timeouts
on: httpcheck.status
class: Latency