Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

http接口获取到的 mbvar转prometheus metrics 格式, 提示格式非法 #2082

Open
highkic opened this issue Jan 11, 2023 · 2 comments
Open

Comments

@highkic
Copy link

highkic commented Jan 11, 2023

Describe the bug (描述bug)
通过brpc_metrics接口获取mbvar 转化来的多lables guage打点,提示type非法
具体的值:

# HELP lat_rank_score_total_latency{system="unknown",module="unknown",server="rank_server_nbase",status="0"}
# TYPE lat_rank_score_total_latency{system="unknown",module="unknown",server="rank_server_nbase",status="0"} gauge
lat_rank_score_total_latency{system="unknown",module="unknown",server="rank_server_nbase",status="0"} 22

To Reproduce (复现方法)

typedef bvar::MultiDimension<bvar::LatencyRecorder> MLatencyRecorder;
MLatencyRecorder lat_rank_score_total("lat_rank_score_total", {"system", "module", "server", "status"});
mbvar_dump=true
mbvar_dump_format= prometheus

打点收集,然后prometheus收集组件通过 http://$ip:$port/brpc_metrics获取打点结果,提示错误

invalid metirc type "system=\"square\" ****** gauge"

Expected behavior (期望行为)
能正常收集

Versions (各种版本)
OS: linux
Compiler: gcc 7.3.1
brpc: 1月10号版master
protobuf: 3.6.0

Additional context/screenshots (更多上下文/截图)

@wwbmmm
Copy link
Contributor

wwbmmm commented Jan 30, 2023

@serverglen 有空看下

@highkic
Copy link
Author

highkic commented Sep 27, 2023

请问这个问题修复分支合入master了么

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants