2323 expression : sum(service_resp_time > 1000) >= 3
2424 period : 10
2525 silence-period : 5
26+ # Number of periods to wait before considering the alarm recovered,default as 0.
27+ recovery-observation-period : 3
2628 message : Response time of service {name} is more than 1000ms in 3 minutes of last 10 minutes.
2729# service_resp_time_rule:
2830# expression: avg(service_resp_time) > 1000
@@ -35,16 +37,20 @@ rules:
3537 period : 10
3638 # How many times of checks, the alarm keeps silence after alarm triggered, default as same as period.
3739 silence-period : 3
40+ # Number of periods to wait before considering the alarm recovered,default as 0.
41+ recovery-observation-period : 2
3842 message : Successful rate of service {name} is lower than 80% in 2 minutes of last 10 minutes
3943 service_resp_time_percentile_rule :
4044 expression : sum(service_percentile{p='50,75,90,95,99'} > 1000) >= 3
4145 period : 10
4246 silence-period : 5
47+ recovery-observation-period : 3
4348 message : Percentile response time of service {name} alarm in 3 minutes of last 10 minutes, due to more than one condition of p50 > 1000, p75 > 1000, p90 > 1000, p95 > 1000, p99 > 1000
4449 service_instance_resp_time_rule :
4550 expression : sum(service_instance_resp_time > 1000) >= 2
4651 period : 10
4752 silence-period : 5
53+ recovery-observation-period : 2
4854 message : Response time of service instance {name} is more than 1000ms in 2 minutes of last 10 minutes
4955 database_access_resp_time_rule :
5056 expression : sum(database_access_resp_time > 1000) >= 2
@@ -63,11 +69,36 @@ rules:
6369# silence-period: 5
6470# message: Response time of endpoint {name} is more than 1000ms in 2 minutes of last 10 minutes
6571
72+
6673# hooks:
6774# webhook:
6875# default:
6976# is-default: true
7077# urls:
71- # - http://127.0.0.1/notify/
72- # - http://127.0.0.1/go-wechat/
73-
78+ # - http://127.0.0.1/default/alarm
79+ # recovery-urls:
80+ # - http://127.0.0.1/default/alarm-recovery
81+ # custom1:
82+ # urls:
83+ # - http://127.0.0.1/custom1/alarm
84+ # recovery-urls:
85+ # - http://127.0.0.1/custom1/alarm-recovery
86+ # wechat:
87+ # default:
88+ # is-default: true
89+ # text-template: |-
90+ # {
91+ # "msgtype": "text",
92+ # "text": {
93+ # "content": "Apache SkyWalking Alarm: \n %s."
94+ # }
95+ # }
96+ # recovery-text-template: |-
97+ # {
98+ # "msgtype": "text",
99+ # "text": {
100+ # "content": "Apache SkyWalking Alarm Recovered: \n %s."
101+ # }
102+ # }
103+ # webhooks:
104+ # - https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=dummy_key
0 commit comments