gateway: separate metrics for Signed IPNS from DNSLink
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 35/100
- Issue 类型
- 功能
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- go
调研方向
从所链接的 Boxo 参考中的 gateway/metrics.go 开始,并将其现有的 gateway 指标与 bifrost-gateway/metrics.go 进行比较。解决有关标签、成功/错误统计以及持续时间测量的未决问题,然后确定这些指标将如何在 Thunderdome 测试中暴露。完成标准是:已签名的 IPNS 和 DNSLink 请求分别具有可观测的请求、结果和持续时间数据。
由索引模型根据 Issue 内容生成。
描述
Extracted from https://github.com/ipfs/kubo/issues/9927#issuecomment-1623791077
Currently, we have basic request counts and durations for gateway=ipfs and gateway=ipns namespaces in the form of boxo/gateway/metrics.go metrics:
# HELP ipfs_http_gw_get_duration_seconds The time to GET a successful response to a request (all content types).
# TYPE ipfs_http_gw_get_duration_seconds histogram
ipfs_http_gw_get_duration_seconds_bucket{gateway="ipfs",le="0.05"} 8
[..]
ipfs_http_gw_get_duration_seconds_bucket{gateway="ipfs",le="1920"} 11
ipfs_http_gw_get_duration_seconds_bucket{gateway="ipfs",le="+Inf"} 11
ipfs_http_gw_get_duration_seconds_sum{gateway="ipfs"} 1.185360469
Problem
/ipnssupports both DNSLink and Signed IPNS records – we have no visibility what is the % of each- we measure success only, have no visibility into % of IPNS record failures vs DNSLink failures
Solution
Requirements
TBD, initial requirements
- we need dedicated metric for each type of
/ipns/requestsigned_ipnsdnslink
- we need to be able to tell:
- how many requests were sent by clients
- how many requests were successful vs errored
- how long success / error takes? (could be precomputed P50/P95)
- we need to make sure this is visible in Thunderdome testing so we can catch regressions here during release phase
Open questions
- do we have a separate metrics for success/failure, or do we have single one with success/error attribute?
- do we do histogram with predefined duration buckets and implicit counter (like
ipfs_http_gw_get_duration_seconds)? - or maybe, instead of picking arbitrary duration buckets (like we have in legacy metrics) we should have P50, P75, P95, P99 Objectives, like we do here?
- 主要语言
- Go
- 星标
- 326
- 派生
- 165
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 没有贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
ipfs/boxo 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 70/100
-
难度 4/5 3-5 天 新手友好度 46/100
-
难度 3/5 1-2 天 新手友好度 55/100
-
need/triage
难度 5/5 一周以上 新手友好度 38/100
-
dif/medium effort/hours kind/enhancement P3 topic/devexp
难度 5/5 一周以上 新手友好度 35/100
相似的 Issue
-
area/networking kind/bug
难度 2/5 1-3 小时 新手友好度 69/100
siderolabs/talos#14972 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 72/100
维护者通常 1 天内回复
-
kubectl wait outputs cryptic "error: unrecognized condition: []" when --for is omitted可能已有人在做 @muskan-creates352 今天认领。 未关闭kind/bug needs-triage
难度 2/5 1-3 小时 新手友好度 84/100
kubernetes/kubectl#1910 · 1 条评论 ·
-
needs-triage
难度 2/5 1-3 小时 新手友好度 66/100
stacklok/toolhive-catalog#1967 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 66/100
unbound-force/gaze#353 ·
维护者通常 1 天内回复