How to use model.Value?
维护者通常 2 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 25/100
- Issue 类型
- 文档
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- go, prometheus
调研方向
首先阅读 Go 客户端的 model.Value、Vector 和 Matrix 定义,以及 issue 中提到的现有 String() 行为。确定响应类型应如何进行检查或解析,并记录 Vector 和 Matrix 的受支持用法。
由索引模型根据 Issue 内容生成。
描述
I am using the Go client for Prometheus, but I wonder how to parse the response data in model.Value (including Vector and Matrix). I have checked the source code, only to find the String() method to get the Vector like {pod="test-001-deployment-896b6d55b-bs586"} => 0.06435052290435223 @[1598949467.625]
{pod="test-003-deployment-665d48fb7f-dlxfb"} => 0.03620828100637146 @[1598949467.625]. So, how can I use the model data gracefully?
- 主要语言
- Go
- 星标
- 297
- 派生
- 380
- 平均合并
- 3 天 15 小时
- 30 天内合并 PR
- 13
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
prometheus/common 的其他 Issue
-
难度 3/5 1-2 天 新手友好度 35/100
prometheus/common#1023 ·
维护者通常 2 天内回复
-
expfmt: OpenMetrics 1.0 output with a unit that is not a name suffix fails the whole scrape in Prometheus可能已有人在做 @itsmeasadali 于 40 天前认领。 未关闭
难度 3/5 1-2 天 新手友好度 58/100
prometheus/common#1005 ·
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 52/100
prometheus/common#876 · 1 条评论 ·
维护者通常 2 天内回复
-
Feature request: Add client_assertion field for oauth2 jwt-bearer grant type可能已有人在做 @alliasgher 于 218 天前认领。 未关闭
难度 3/5 1-2 天 新手友好度 68/100
prometheus/common#869 ·
维护者通常 2 天内回复
-
难度 5/5 一周以上 新手友好度 30/100
prometheus/common#858 ·
维护者通常 2 天内回复
查看 prometheus/common 的全部 Issue
相似的 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 86/100
txn2/mcp-data-platform#2728 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
blinklabs-io/dingo#6504 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 84/100
SocialGouv/iterion#3413 ·
维护者通常 1 天内回复
-
bug
难度 1/5 1 小时以内 新手友好度 88/100
orion-belt-dev/orion-belt#181 ·
维护者通常 1 天内回复
-
documentation good first issue
难度 2/5 1-3 小时 新手友好度 79/100
kubesmarts/logic-operator#105 ·
维护者通常 1 天内回复