xuexiaoyu-beijing opened a new issue, #4126:
URL: https://github.com/apache/hertzbeat/issues/4126
### Question
我们用的是v1.8.0版本,采用实时告警模式,自定义监控模版,模板里多个http接口,请问这个版本支持实时阈值告警恢复通知么,因为监测了很久还是收不到恢复提醒,状态也不变,检查了配置未发现有遗漏的地方,还是有其他地方配置这个恢复提醒通知的开关么?希望能得到您的回复,感谢
1.监控中心配置:
<img width="1653" height="811" alt="Image"
src="https://github.com/user-attachments/assets/ce223bc5-058a-45cf-ae36-60265e72b23c"
/>
2.实时阈值规则:
<img width="1282" height="906" alt="Image"
src="https://github.com/user-attachments/assets/47da904e-8252-41a8-8e3d-f0612ad91e77"
/>
3.自定义监控模版:
category: custom
app: saas_business_monitor
name:
zh-CN: SaaS业务API监控
en-US: SaaS Business API Monitor
help:
zh-CN: "监控SaaS业务核心流程: 首页访问, 用户登录, 获取信息, 退出登录"
en-US: "Monitor SaaS business core flow: Homepage, Login, Get User Info,
Logout"
params:
- field: host
name:
zh-CN: 主机Host
en-US: Host
type: host
required: true
defaultValue: 101.200.X.X
- field: port
name:
zh-CN: 端口
en-US: Port
type: number
required: true
defaultValue: 80
- field: timeout
name:
zh-CN: 超时时间(ms)
en-US: Timeout(ms)
type: number
required: false
defaultValue: 15000
metrics:
# 步骤3: 获取用户信息
- name: api_user_info
i18n:
zh-CN: 获取用户信息
en-US: Get User Info
priority: 2
fields:
- field: statusCode
type: 1
label: true
- field: message
type: 1
label: true
aliasFields:
- status
- message
calculates:
- statusCode=status
- message=message
protocol: http
http:
host: ^_^host^_^
port: ^_^port^_^
url: "/saas/getInfo"
method: GET
timeout: ^_^timeout^_^
headers:
Token: ^o^auth_token^o^
parseType: jsonPath
parseScript: "$"
keyword:
- "成功"
4.分组收敛:
<img width="717" height="380" alt="Image"
src="https://github.com/user-attachments/assets/82438f9d-2bde-4625-92a0-dd00f0623406"
/>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail:
[email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]