groups:
- name: api
rules:
- alert: 接口请求错误率 #告警名称
expr: rate(counter_**_WebService_total[5m]) * 60 > 5 and rate(counter_HIS_WebService_exception_total[5m]) / rate(counter_**_WebService_total[5m]) > 0.2
for: 1m #持续多久后发送
labels:
severity: "紧急"
service: **
annotations: #信息
summary: "错误率太高"
description: "错误率值: {{ $value }}"