Title: Expose per-app session counts in deployment stats, Prometheus, and the UI · Issue #27411 · coder/coder · GitHub
Open Graph Title: Expose per-app session counts in deployment stats, Prometheus, and the UI · Issue #27411 · coder/coder
X Title: Expose per-app session counts in deployment stats, Prometheus, and the UI · Issue #27411 · coder/coder
Description: Phase 2 of the Scalable Approach for Adding New IDE Session Types RFC. Phase 1 (#27410) stores per-app session counts internally but keeps all external surfaces unchanged; this phase exposes the dynamic counts so admins can see Cursor vs...
Open Graph Description: Phase 2 of the Scalable Approach for Adding New IDE Session Types RFC. Phase 1 (#27410) stores per-app session counts internally but keeps all external surfaces unchanged; this phase exposes the dy...
X Description: Phase 2 of the Scalable Approach for Adding New IDE Session Types RFC. Phase 1 (#27410) stores per-app session counts internally but keeps all external surfaces unchanged; this phase exposes the dy...
Opengraph URL: https://github.com/coder/coder/issues/27411
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Expose per-app session counts in deployment stats, Prometheus, and the UI","articleBody":"Phase 2 of the [Scalable Approach for Adding New IDE Session Types RFC](\u003chttps://app.notion.com/p/coderhq/Scalable-Approach-for-Adding-New-IDE-Session-Types-2d2d579be5928044bfd3cab09f1466b7>). Phase 1 (coder/coder#27410) stores per-app session counts internally but keeps all external surfaces unchanged; this phase exposes the dynamic counts so admins can see Cursor vs VS Code vs anything else.\n\nExternally visible surfaces publish the additive per-app shape alongside deprecated legacy outputs. The completion RFC leaves removal timing and policy TBD; one compatibility release does not automatically authorize removal:\n\n* `codersdk.SessionCountDeploymentStats`: expose the `apps` map with normalized app names, counts, family, display name, and icon; keep the existing `vscode`/`jetbrains`/`ssh`/`reconnecting_pty` fields populated by family until removal is separately approved\n* Prometheus: one session count gauge labeled by both `app_name` and `family` alongside the four `coderd_agentstats_session_count_*` gauges, preserving per-app visibility and supporting family aggregation; the old gauges remain deprecated and keep publishing until the removal policy/release is separately approved\n* Telemetry snapshot: add a map field next to the legacy `SessionCount*` fields; removal of the legacy fields must be coordinated with the telemetry ingestion owners\n* Deployment banner (`DeploymentBannerView.tsx`): render the map dynamically instead of the four hardcoded entries\n* Extend the existing app registry in `codersdk/appname.go` (`appNameFamilies`, `NormalizeAppName`, and `AppNameFamily`) with display-name metadata (e.g. `vscode` → \"VS Code\") so the UI does not hardcode labels; unrecognized names fall back to the normalized raw identifier. This registry supersedes the earlier `coderd/idemetadata` design; do not introduce a separate registry.\n\n### Done when\n\n- [ ] `apps` map in the deployment stats API, legacy fields still populated by family\n- [ ] Labeled gauge exported; legacy gauges deprecated in docs, with removal timing left TBD until approved\n- [ ] Telemetry map field lands with ingestion sign-off\n- [ ] Deployment banner shows a new app name (e.g. `cursor`) without further frontend changes\n- [ ] Follow-up [CLIENT-980](https://linear.app/codercom/issue/CLIENT-980/remove-legacy-session-count-api-fields-and-prometheus-gauges-after-the) tracks eventual legacy removal under a separately agreed policy\n\nDepends on coder/coder#27410. The count queries already return per-app `session_counts` JSONB and fold into families in Go (coder/coder#29109), so this is API/metrics/UI projection work with no SQL changes.\n\n---\n\n🤖 Created by Coder Agents on behalf of @EhabY.\n\nDescription updated by Coder Agents on behalf of @EhabY: corrected the registry location and recorded the agreed Prometheus label dimensions.\n\nCompatibility policy corrected against the [Completing Scalable IDE Session Tracking RFC](\u003chttps://app.notion.com/p/3e9d579be5928178b37ce324b8ba0c8b>) by Coder Agents on behalf of @EhabY. The issue remains Done; this does not reopen completed work.","author":{"url":"https://github.com/EhabY","@type":"Person","name":"EhabY"},"datePublished":"2026-07-22T09:22:07Z","url":"https://github.com/coder/coder/issues/27411"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:962a1e8f-f97b-ceca-7d11-7cce4d8f5460 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8372:2E124E:21A0C89:2AE9C7D:6B017FBC |
| html-safe-nonce | fee6f1c017489f285b323b67a618104ddd875d929cd2dcadafa67ad9320bbd83 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MzcyOjJFMTI0RToyMUEwQzg5OjJBRTlDN0Q6NkIwMTdGQkMiLCJ2aXNpdG9yX2lkIjoiMzQzODYwNzA1Mjk3OTY2Njg3NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 805477899b24d65f45bcd74369bec3ed9b5102524ee0f3d8aaa33bdf065e507e |
| hovercard-subject-tag | issue:4947452949 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/coder/coder/27411/issue_layout |
| twitter:image | https://opengraph.githubassets.com/29582170921a789823fb13ac2ed5cbee4381d951160e2b4945c55823e15957e0/coder/coder/issues/27411 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/29582170921a789823fb13ac2ed5cbee4381d951160e2b4945c55823e15957e0/coder/coder/issues/27411 |
| og:image:alt | Phase 2 of the Scalable Approach for Adding New IDE Session Types RFC. Phase 1 (#27410) stores per-app session counts internally but keeps all external surfaces unchanged; this phase exposes the dy... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | EhabY |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/coder/coder git https://github.com/coder/coder.git |
| octolytics-dimension-user_id | 95932066 |
| octolytics-dimension-user_login | coder |
| octolytics-dimension-repository_id | 440752086 |
| octolytics-dimension-repository_nwo | coder/coder |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 440752086 |
| octolytics-dimension-repository_network_root_nwo | coder/coder |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width