You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Align cost panels with currencyUSD and stacked daily on-demand versus included spend.
* Document Enterprise AI Code Tracking gaps in the cursor plugin README.
Signed-off-by: Joshua Smith <jbsmith7741@gmail.com>
See `grafana/dashboards/mysql/CursorREADME.md` for dashboard prerequisites, variables, and panel descriptions.
138
+
See `grafana/dashboards/mysql/cursor-usage.json` for the dashboard definition and [rak_tools/grafana.md](../../../rak_tools/grafana.md) for currency formatting and Grafana version notes.
139
139
140
140
## Error handling
141
141
@@ -149,9 +149,30 @@ See `grafana/dashboards/mysql/CursorREADME.md` for dashboard prerequisites, vari
149
149
150
150
Tokens are sanitized before persisting. Connection test results include a `permissions` object showing which Admin API endpoints succeeded.
151
151
152
+
## Not collected (Enterprise AI Code Tracking)
153
+
154
+
The following endpoints from the [AI Code Tracking API](https://cursor.com/docs/account/teams/ai-code-tracking-api) are **Enterprise plan only** and are **not implemented** in this plugin (no collector, extractor, or `_tool_cursor_*` table):
155
+
156
+
| Endpoint | Purpose |
157
+
|----------|---------|
158
+
|`GET /analytics/ai-code/commits`| Per-commit AI line attribution (TAB vs Composer vs non-AI) |
159
+
|`GET /analytics/ai-code/changes`| Granular accepted AI changes |
160
+
|`GET /analytics/ai-code/commits.csv` / `changes.csv`| Bulk CSV exports of the above |
161
+
162
+
Team/Business Admin API keys typically receive **401** on these routes. Connection test optionally probes `GET /analytics/team/dau` (`probeEnterpriseAnalytics`) to detect Enterprise access; it does **not** ingest analytics data.
163
+
164
+
**Metrics this would unlock** (shown on the Cursor native dashboard but absent from DevLake today):
165
+
166
+
- AI share of **committed** code (not editor line acceptance)
167
+
- Per-commit `commitSource`: IDE, CLI, or cloud
168
+
- Repo name and primary-branch filters
169
+
- TAB vs Composer line attribution on commits
170
+
171
+
The **Cursor Usage** Grafana dashboard (`grafana/dashboards/mysql/cursor-usage.json`) uses Admin API proxies from `_tool_cursor_daily_usage` and `_tool_cursor_usage_events` instead; panel descriptions note where metrics are approximate.
172
+
152
173
## Limitations
153
174
154
-
-**Team/Business Admin API only** — Enterprise-only Analytics API endpoints (`/analytics/*`) are not collected in this plugin.
175
+
-**Team/Business Admin API only** — Enterprise-only Analytics API endpoints (`/analytics/*`) are not collected in this plugin (see [Not collected (Enterprise AI Code Tracking)](#not-collected-enterprise-ai-code-tracking) above).
155
176
-**Tool layer only** — no domain-layer tables; cross-plugin joins (Jira, GitHub PRs, etc.) are done in Grafana SQL or separate tooling.
156
177
-**Team-level scope** — one scope per connection represents the whole team; per-team multi-tenant collection is not supported.
157
178
-**Beta** — the plugin is marked beta in Config UI while the Admin API surface continues to evolve.
0 commit comments