Skip to content

feat(usage): add event analytics dashboard - #176

Merged
mrgoonie merged 3 commits into
devfrom
codex/issue-107-usage-analytics-plan
Jun 12, 2026
Merged

feat(usage): add event analytics dashboard#176
mrgoonie merged 3 commits into
devfrom
codex/issue-107-usage-analytics-plan

Conversation

@mrgoonie

Copy link
Copy Markdown

Summary

  • Add append-only usage_events plus hourly usage_event_rollups for PostgreSQL and SQLite.
  • Record only the requested activation classes: use_skill, slash-command skill activation, and runtime/tool/MCP tool calls.
  • Add /v1/usage/events/{summary,breakdown,timeseries} and Usage dashboard panel with resource tabs for tools, skills, MCP tools, and runtime tools.

Privacy / Scope

  • No per-user analytics added; user_id filter is rejected on event endpoints.
  • Event metadata avoids raw prompts, tool args, outputs, and shell commands.
  • Rollups are refreshed by the existing snapshot worker/backfill path.

Validation

  • /usr/local/go/bin/go test ./...
  • /usr/local/go/bin/go test -tags sqliteonly ./internal/store/sqlitestore
  • /usr/local/go/bin/go vet ./...
  • /usr/local/go/bin/go build ./...
  • /usr/local/go/bin/go build -tags sqliteonly ./...
  • pnpm -C ui/web build (passes; existing chunk-size warning only)

Plan: plans/260612-1530-issue-107-usage-event-analytics/plan.md
Refs #107

@mrgoonie mrgoonie added the ready to ship beta Fix verified and ready for beta shipping label Jun 12, 2026
@mrgoonie
mrgoonie merged commit c32d6b3 into dev Jun 12, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready to ship beta Fix verified and ready for beta shipping

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant