【开源自荐】agent-otel-kit:一条命令在本机看 AI 编程 agent 的费用、token 和链路

Open
#204 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
35/100
Issue type
Documentation
Clarity
Needs clarification
Activity status
Active
Tech stack
docker-compose, go, grafana, prometheus
Domain
content

Research direction

This is a project self-promotion with no requested change or contribution task. Start by reading the linked agent-otel-kit project README to understand its purpose; the issue does not identify any files or tests to work on, and it provides no completion criteria.

Written by the indexing model from the issue text.

Description

  • 项目地址:https://github.com/s3onghyun/agent-otel-kit

  • 语言类别:Go

  • 项目标题:agent-otel-kit:一条命令在本机看 AI 编程 agent 的费用、token 和链路

  • 项目描述:给 AI 编程 agent 用的本地 OpenTelemetry 栈。docker compose up -d 启动 OpenTelemetry Collector、Prometheus、Loki、Tempo 和 Grafana(可选 Perses),Go 写的 CLI agent-otel-kit setup claude|codex|gemini 把 Claude Code、Codex、Gemini CLI 指向 collector(先备份配置,setup --undo 可原样恢复),doctor 检查数据是否到达。三家的指标名和计数方式各不相同(都是 delta temporality),collector 用 delta_to_cumulative 和 transform 规则统一成同一套标签,三个仪表盘(费用与 token、工具调用、会话与链路)对三家通用。prompt、模型回复、工具参数、文件路径和账户邮箱默认不存储,端口只绑定 127.0.0.1。费用目前只有 Claude Code 导出。已在 Claude Code 2.1.325、Codex 0.169.0、Gemini CLI 0.68.0 上验证。Apache-2.0。我是作者,在 AI 编程助手协助下开发。

  • 截图:Grafana:agent 费用与 token

Dominant language
No language data
Stars
612
Forks
34
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from eryajf/learning-weekly

All issues in eryajf/learning-weekly

Similar issues

More Content issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.