prometheus / prometheus/client_java

Implement Otel Translation Strategies per spec

未关闭
#1,555 9 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

主要语言
Java
星标
2.3k
派生
833
平均合并
2 天 16 小时
30 天内合并 PR
86

描述

ref: https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/sdk_exporters/prometheus.md#configuration

This will allow java users to enable NoTranslation mode for 1:1 otel metric names, if they so choose.

per the discussion on CNCF Slack, when we add documentation for this feature we should make sure to point out that modes without suffixes are technically in violation of the Open Metrics specification and may lead to unpredictable results. Example text for other warnings: https://github.com/prometheus/otlptranslator/blob/main/strategy.go#L25-L60

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

从链接的 OpenTelemetry Prometheus 配置部分开始,并将其转换策略与 prometheus/otlptranslator/strategy.go 中的警告示例进行比较。找到 Java 指标转换的入口点和测试,然后验证用户可以选择 NoTranslation,并且文档说明了无后缀模式的 Open Metrics 兼容性警告。

由索引模型根据 Issue 内容生成。

评估

技术栈
java
领域
observability-sre
Issue 类型
功能
难度
4/5
预计耗时
3-5 天
活跃度
冷清
描述清晰度
基本清楚
新手友好度
48/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。