apache / apache/hertzbeat

建议增加被动监测功能

Open
#183 3 comments 3 reactions 0 assignees View on GitHub
enhancement
Dominant language
Java
Stars
7.4k
Forks
1.3k
Avg merge
1d 20h
Merged PRs (30d)
32

Description

我看类似的监控工具都是主动探测的,我觉得需要增加一个被动的功能。
可以参考的是 https://healthchecks.io/

被动监测的玩法:
需要监测的服务定期通过http接口向监控机上报数据,或者仅仅是报个平安。一段时间没有报,或者数据有误,就发警报。

被动监测的用途:
1.apm位于公网,需要监测的服务位于内网。
2.简化告警逻辑,什么情况下需要告警由上报机决定。
3.上报机可以crontab跑脚本,可以通过monit跑比较复杂的逻辑。

举例:
1.每天跑mysql备份,备份完告诉监控机我备份完了
2.内网通过数据库监控某一条数据,定期告诉监控机这条数据还OK
3.家庭内网跑个脚本监测动态拨号的IP,有更新了告诉监控机,这个比监控机监控ddns更新方便。

Contributor guide

Open the contributing guide

Research direction

No files, tests, or entry points are named. Start by reviewing the existing monitoring and alerting flow, then compare it with healthchecks.io and define the HTTP reporting contract, missed or invalid-report behavior, and how completion would be verified.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend-api-design, observability
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.