master
conf 88 lines 2.85 KB
Raw
1
2 # This is a fast-reacting no-notification alarm ideal for custom dashboards or badges
3 template: httpcheck_web_service_up
4 on: httpcheck.status
5 class: Utilization
6 type: Web Server
7 component: HTTP endpoint
8 lookup: average -1m unaligned percentage of success
9 calc: ($this < 75) ? (0) : ($this)
10 every: 5s
11 units: up/down
12 info: HTTP check endpoint ${label:url} liveness status
13 to: silent
14
15 template: httpcheck_web_service_bad_content
16 on: httpcheck.status
17 class: Workload
18 type: Web Server
19 component: HTTP endpoint
20 lookup: average -5m unaligned percentage of bad_content
21 every: 10s
22 units: %
23 warn: $this >= 10 AND $this < 40
24 crit: $this >= 40
25 delay: down 5m multiplier 1.5 max 1h
26 summary: HTTP check for ${label:url} unexpected content
27 info: Percentage of HTTP responses from ${label:url} with unexpected content in the last 5 minutes
28 to: webmaster
29
30 template: httpcheck_web_service_bad_status
31 on: httpcheck.status
32 class: Workload
33 type: Web Server
34 component: HTTP endpoint
35 lookup: average -5m unaligned percentage of bad_status
36 every: 10s
37 units: %
38 warn: $this >= 10 AND $this < 40
39 crit: $this >= 40
40 delay: down 5m multiplier 1.5 max 1h
41 summary: HTTP check for ${label:url} unexpected status
42 info: Percentage of HTTP responses from ${label:url} with unexpected status in the last 5 minutes
43 to: webmaster
44
45 template: httpcheck_web_service_bad_header
46 on: httpcheck.status
47 class: Errors
48 type: Web Server
49 component: HTTP endpoint
50 lookup: average -5m unaligned percentage of bad_header
51 every: 10s
52 units: %
53 warn: $this >= 10 AND $this < 40
54 crit: $this >= 40
55 delay: down 5m multiplier 1.5 max 1h
56 summary: HTTP check for ${label:url} unexpected header
57 info: Percentage of HTTP responses from ${label:url} with unexpected header in the last 5 minutes
58 to: webmaster
59
60 template: httpcheck_web_service_timeouts
61 on: httpcheck.status
62 class: Latency
63 type: Web Server
64 component: HTTP endpoint
65 lookup: average -5m unaligned percentage of timeout
66 every: 10s
67 units: %
68 warn: $this >= 10 AND $this < 40
69 crit: $this >= 40
70 delay: down 5m multiplier 1.5 max 1h
71 summary: HTTP check for ${label:url} timeouts
72 info: Percentage of timed-out HTTP requests to ${label:url} in the last 5 minutes
73 to: webmaster
74
75 template: httpcheck_web_service_no_connection
76 on: httpcheck.status
77 class: Errors
78 type: Other
79 component: HTTP endpoint
80 lookup: average -5m unaligned percentage of no_connection
81 every: 10s
82 units: %
83 warn: $this >= 10 AND $this < 40
84 crit: $this >= 40
85 delay: down 5m multiplier 1.5 max 1h
86 summary: HTTP check for ${label:url} failed requests
87 info: Percentage of failed HTTP requests to ${label:url} in the last 5 minutes
88 to: webmaster