/
AlexandrNarbaev
/
opencode_initializer
Обзор
Документация
Войти
/
AlexandrNarbaev
/
opencode_initializer
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
main
src/grafana/dashboards/agent-performance.json
71 строка
3 KB
Alexandr Narbaev
feat: 100% requirements compliance — GUI, model routing, corporate proxy, cost analytics, docs
03 июл 2026, 15:43
03 июл 2026, 15:43
5299c63
Код
Авторство
О чём код?
{ "annotations": { "list": [] }, "title": "OpenCode Agent Performance & Token Usage", "uid": "opencode-tokens", "schemaVersion": 39, "version": 1, "panels": [ { "id": 1, "title": "Total Token Usage (24h)", "type": "stat", "datasource": { "type": "prometheus", "uid": "Prometheus" }, "gridPos": { "h": 4, "w": 8, "x": 0, "y": 0 }, "targets": [{ "expr": "sum(increase(opencode_tokens_total[24h]))", "refId": "A" }], "fieldConfig": { "defaults": { "title": "Tokens (24h)", "unit": "short" } } }, { "id": 2, "title": "Estimated Cost (24h)", "type": "stat", "datasource": { "type": "prometheus", "uid": "Prometheus" }, "gridPos": { "h": 4, "w": 8, "x": 8, "y": 0 }, "targets": [{ "expr": "sum(increase(opencode_cost_usd_total[24h]))", "refId": "A" }], "fieldConfig": { "defaults": { "title": "Cost (24h)", "unit": "currencyUSD" } } }, { "id": 3, "title": "Active Sessions", "type": "stat", "datasource": { "type": "prometheus", "uid": "Prometheus" }, "gridPos": { "h": 4, "w": 8, "x": 16, "y": 0 }, "targets": [{ "expr": "opencode_active_sessions", "refId": "A" }], "fieldConfig": { "defaults": { "title": "Active Sessions" } } }, { "id": 4, "title": "Token Usage by Model", "type": "piechart", "datasource": { "type": "prometheus", "uid": "Prometheus" }, "gridPos": { "h": 8, "w": 12, "x": 0, "y": 4 }, "targets": [{ "expr": "sum by(model) (opencode_tokens_total)", "legend": "{{model}}", "refId": "A" }] }, { "id": 5, "title": "Cost by Provider", "type": "bargauge", "datasource": { "type": "prometheus", "uid": "Prometheus" }, "gridPos": { "h": 8, "w": 12, "x": 12, "y": 4 }, "targets": [{ "expr": "sum by(provider) (opencode_cost_usd_total)", "legend": "{{provider}}", "refId": "A" }] }, { "id": 6, "title": "Token Usage Over Time", "type": "timeseries", "datasource": { "type": "prometheus", "uid": "Prometheus" }, "gridPos": { "h": 8, "w": 24, "x": 0, "y": 12 }, "targets": [{ "expr": "rate(opencode_tokens_total[5m])", "legend": "{{model}}", "refId": "A" }], "fieldConfig": { "defaults": { "unit": "short" } } }, { "id": 7, "title": "Model Success Rate", "type": "table", "datasource": { "type": "prometheus", "uid": "Prometheus" }, "gridPos": { "h": 8, "w": 24, "x": 0, "y": 20 }, "targets": [{ "expr": "opencode_model_success_rate", "format": "table", "refId": "A" }] } ], "time": { "from": "now-24h", "to": "now" }, "refresh": "30s" }