rules: # Rule unique name, must be ended with `_rule`. service_resp_time_rule: metrics-name:service_resp_time op:">" threshold:1000 period:10 count:3 silence-period:5 message:Responsetimeofservice {name} ismorethan1000msin3minutesoflast10minutes. service_sla_rule: # Metrics value need to be long, double or int metrics-name:service_sla op:"<" threshold:8000 # The length of time to evaluate the metrics period:10 # How many times after the metrics match the condition, will trigger alarm count:2 # How many times of checks, the alarm keeps silence after alarm triggered, default as same as period. silence-period:3 message:Successfulrateofservice {name} islowerthan80%in2minutesoflast10minutes service_resp_time_percentile_rule: # Metrics value need to be long, double or int metrics-name:service_percentile op:">" threshold:1000,1000,1000,1000,1000 period:10 count:3 silence-period:5 message:Percentileresponsetimeofservice {name} alarmin3minutesoflast10minutes,duetomorethanoneconditionofp50>1000,p75>1000,p90>1000,p95>1000,p99>1000 service_instance_resp_time_rule: metrics-name:service_instance_resp_time op:">" threshold:1000 period:10 count:2 silence-period:5 message:Responsetimeofserviceinstance {name} ismorethan1000msin2minutesoflast10minutes database_access_resp_time_rule: metrics-name:database_access_resp_time threshold:1000 op:">" period:10 count:2 message:Responsetimeofdatabaseaccess {name} ismorethan1000msin2minutesoflast10minutes endpoint_relation_resp_time_rule: metrics-name:endpoint_relation_resp_time threshold:1000 op:">" period:10 count:2 message:Responsetimeofendpointrelation {name} ismorethan1000msin2minutesoflast10minutes webhooks: # - http://127.0.0.1/notify/ # - http://127.0.0.1/go-wechat/