apache / apache/hertzbeat

[Question] <The collection interval is not absolutely 30s>

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

Description

### Question

阅读源码,发现指标时间是客户端调度时间,
![lQLPKGrR_pMoh4PNAbvNA6GwtINrtJeKZTYGkS_sHMOkAA_929_443](https://github.com/user-attachments/assets/a9b44fb5-602f-44d4-97e1-c5614bbee77f)
目前场景会发现,每30s会产生1s的误差,以至于测试数据一直有周期性毛刺。下图:脚本每分钟两次写入,分别是3跟2值是5才是正确的
![QQ图片20240729194749](https://github.com/user-attachments/assets/c2e5e1b0-2bc9-4512-83d4-4484a76b602e)

Contributor guide

Open the contributing guide

Research direction

Start by tracing the client metric collection scheduler and the source of the metric timestamps described in the issue; the issue does not name a file or test. Reproduce the reported periodic one-second discrepancy with the described twice-per-minute writes, then establish expected interval and timestamp behavior before determining what a fix should verify.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
observability
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.