apache / apache/brpc

Bvar会丢失数据

Open
#2,682 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
17.6k
Forks
4.1k
Avg merge
2d 12h
Merged PRs (30d)
69

Description

我用mbvar来模拟prometheus的histogram指标,通过添加一个le的label来统计所有小于等于这个值的counter,其中+inf应该等于所有的请求数。但跑了一段时间后发现counter数并没有按照le的大小排序。如图

![image](https://github.com/apache/brpc/assets/2713364/875799b8-c0c5-4f3e-b6fe-f42731293271)

Contributor guide

Open the contributing guide

Research direction

No source file or test is named. Start by reproducing the reported mbvar Prometheus histogram case with the le label and compare bucket counters over time. Done means explaining or correcting why counts stop following le order and ensuring +inf matches the total request count.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.