prometheus / prometheus/client_python
How to set custom metrics endpoint using MetricsHandler/BaseHTTPRequestHandler?
未关闭
还没有人认领这个 Issue。
- 主要语言
- Python
- 星标
- 4.4k
- 派生
- 876
- 平均合并
- 8 天 4 小时
- 30 天内合并 PR
- 1
描述
Hi, in the README it says to use BaseHTTPRequestHandler to write a custom metrics endpoint but doesn't elaborate at all on how it's used. Is there an example or guide that someone could give to show how it could be used?
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从 README 中对 BaseHTTPRequestHandler 的提及开始,并检查项目中 MetricsHandler 的使用方式。添加一个针对性示例或指南,展示如何配置自定义指标端点,并提供足够的上下文,让用户可以从 README 中按照说明操作。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- python
- 领域
- documentation
- Issue 类型
- 文档
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100