Skip to content

Commit b861767

Browse files
bpmctclaude
andcommitted
docs: add comprehensive Template Insights documentation
Adds complete documentation for the Template Insights feature covering: - Overview of active users, app usage, user activity, latency, and parameters - Step-by-step access instructions with permission requirements - Visual examples with three screenshots showing key metrics - Use cases for template optimization, capacity planning, and user support - Permission model and data privacy considerations - API access documentation Includes three new screenshots illustrating the insights interface and metrics. Closes #21138 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent 1e14158 commit b861767

File tree

3 files changed

+46
-114
lines changed

3 files changed

+46
-114
lines changed

docs/admin/templates/template-insights.md

Lines changed: 46 additions & 114 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,6 @@ Template Insights provides detailed analytics and usage metrics for your Coder t
44

55
![Template Insights page](../../images/admin/templates/template-insights.png)
66

7-
<small>The Template Insights page showing active users and latency metrics.</small>
8-
9-
## Overview
10-
11-
Template Insights offers visibility into:
12-
13-
- **Active Users**: Track the number of users actively using workspaces from a template
14-
- **Application Usage**: See which applications (VS Code, JetBrains, SSH, etc.) users are accessing
15-
- **User Activity**: Identify the most active users and their usage patterns
16-
- **Connection Latency**: Monitor workspace connection performance
17-
- **Template Parameters**: Understand which parameter values users are selecting
18-
197
## Accessing Template Insights
208

219
To view Template Insights:
@@ -24,57 +12,28 @@ To view Template Insights:
2412
2. Select a template from the list
2513
3. Click the **Insights** tab
2614

27-
> **Note**: Template Insights requires the `view_insights` permission on the template. Template administrators and organization owners have this permission by default.
28-
29-
## Insights Data
30-
31-
### Active Users Chart
32-
33-
The Active Users chart displays the number of unique users who connected to workspaces from this template over time. You can view data by:
34-
35-
- **Daily intervals**: Shows activity for each day (default for templates less than 5 weeks old)
36-
- **Weekly intervals**: Shows activity aggregated by week (default for templates 5 weeks or older)
15+
> [!NOTE]
16+
> Template Insights requires the `view_insights` permission on the template. Template administrators and organization owners have this permission.
3717
38-
Use the date range picker to analyze specific time periods.
39-
40-
### Application Usage
41-
42-
The Application Usage section shows which applications users are connecting through:
43-
44-
#### Built-in Applications
45-
46-
- **VS Code**: Includes VS Code web and desktop connections
47-
- **JetBrains**: JetBrains Gateway connections
48-
- **SSH**: Direct SSH connections to workspaces
49-
- **SFTP**: File transfer connections
50-
- **Web Terminal**: Browser-based terminal sessions
51-
52-
#### Custom Applications
53-
54-
If your template includes custom applications (defined via `coder_app` resources), they will appear in this section with their usage statistics.
55-
56-
For each application, you can see:
18+
## Overview
5719

58-
- Total seconds of usage during the selected period
59-
- Number of times the application was launched (for custom apps)
20+
The Template Insights page displays usage analytics across several key areas:
6021

61-
### User Activity
22+
<small>Template Insights showing weekly active users and connection latency metrics.</small>
6223

63-
The User Activity section lists users who have used workspaces from this template, sorted by total usage time. For each user, you can see:
24+
### Active Users
6425

65-
- Username and avatar
66-
- Total seconds of workspace usage
67-
- Which templates they used (when viewing insights across multiple templates)
26+
The Weekly Active Users chart tracks the number of unique users who connected to workspaces from this template over time. This metric helps you:
6827

69-
This helps identify:
28+
- Monitor template adoption trends
29+
- Identify usage patterns and peak periods
30+
- Plan infrastructure capacity based on user growth
7031

71-
- Power users who may benefit from optimized resources
72-
- Users who might need additional support or training
73-
- Overall adoption of the template
32+
You can view data by daily intervals (default for templates less than 5 weeks old) or weekly intervals (default for templates 5 weeks or older). Use the date range picker to analyze specific time periods.
7433

7534
### User Latency
7635

77-
The User Latency section displays connection performance metrics:
36+
The connection latency table displays performance metrics for each user:
7837

7938
- **P50 (Median)**: The median connection latency experienced by users
8039
- **P95**: The 95th percentile latency, indicating worst-case performance for most users
@@ -85,59 +44,57 @@ Latency is color-coded for quick assessment:
8544
- **Yellow**: Moderate performance (150-300ms)
8645
- **Red**: Poor performance (> 300ms)
8746

88-
High latency may indicate:
47+
High latency may indicate network issues between users and workspaces, resource constraints on workspace hosts, or geographic distance between users and infrastructure.
8948

90-
- Network issues between users and workspaces
91-
- Resource constraints on workspace hosts
92-
- Geographic distance between users and infrastructure
49+
## Application Usage and User Activity
9350

94-
### Template Parameters
51+
Template Insights provides detailed metrics on how users interact with workspace applications and which users are most active.
9552

96-
The Template Parameters section shows which parameter values users are selecting when creating workspaces. This helps you:
53+
![App & IDE Usage and Activity by user](../../images/admin/templates/template-insights-apps-activity.png)
9754

98-
- Understand common configuration choices
99-
- Identify unused parameter options
100-
- Optimize default values based on actual usage
55+
<small>Application usage statistics and user activity rankings.</small>
10156

102-
For each parameter, you can see:
57+
### App & IDE Usage
10358

104-
- Parameter name and type
105-
- Distribution of selected values
106-
- Number of workspaces using each value
59+
The App & IDE Usage section shows which applications users are connecting through, ranked by total usage time.
10760

108-
## Use Cases
61+
### Activity by User
10962

110-
### Capacity Planning
63+
The Activity by user table lists users who have used workspaces from this template, sorted by total usage time. This information helps you:
11164

112-
Monitor active user trends to:
65+
- Identify power users who may benefit from optimized resources
66+
- Spot users who might need additional support or training
67+
- Understand overall adoption of the template
68+
- Plan resource allocation based on actual usage patterns
11369

114-
- Predict infrastructure capacity needs
115-
- Plan for scaling during peak usage periods
116-
- Identify underutilized templates that could be consolidated
70+
## Template Parameters
11771

118-
### Template Optimization
72+
Understanding which parameter values users select when creating workspaces helps you optimize template defaults and identify unused options.
11973

120-
Use insights to:
74+
![Template Parameters distribution](../../images/admin/templates/template-insights-parameters.png)
12175

122-
- Remove unused applications or features
123-
- Adjust default parameters based on actual usage patterns
124-
- Optimize resource allocations for common use cases
76+
<small>Distribution of memory usage threshold and region parameter selections.</small>
12577

126-
### User Support
78+
The Template Parameters section shows the distribution of values selected for each parameter in your template. In the example above:
12779

128-
Identify users with:
80+
- **Memory usage threshold**: Shows that most workspaces (934) use the default 80% threshold, with only a few using higher thresholds
81+
- **Region**: Displays geographic distribution of workspaces, with Pittsburgh being the most popular region (232 workspaces), followed by Falkenstein (137) and Cape Town (93)
12982

130-
- High latency connections who may need network troubleshooting
131-
- Low usage who might need onboarding help
132-
- Specific application preferences for targeted support
83+
This information helps you:
84+
85+
- Understand common configuration choices
86+
- Identify unused parameter options that could be removed
87+
- Optimize default values based on actual usage patterns
88+
- Plan regional infrastructure capacity
13389

134-
### ROI and Reporting
90+
## Use Cases
13591

136-
Generate reports on:
92+
Template Insights helps you make data-driven decisions about your Coder deployment:
13793

138-
- Developer productivity through usage metrics
139-
- Template adoption rates
140-
- Infrastructure utilization efficiency
94+
- **Template Optimization**: Remove unused applications or features, adjust default parameters based on actual usage patterns, and optimize resource allocations for common use cases
95+
- **Capacity Planning**: Monitor active user trends to predict infrastructure capacity needs, plan for scaling during peak usage periods, and identify underutilized templates that could be consolidated
96+
- **User Support**: Identify users with high latency connections who may need network troubleshooting, low usage who might need onboarding help, or specific application preferences for targeted support
97+
- **ROI and Reporting**: Generate reports on developer productivity through usage metrics, template adoption rates, and infrastructure utilization efficiency
14198

14299
## Permissions
143100

@@ -149,6 +106,8 @@ Template Insights respects Coder's RBAC (Role-Based Access Control) system:
149106

150107
To grant a user access to Template Insights for a specific template, assign them the `view_insights` permission through [template permissions](./template-permissions.md).
151108

109+
Access to insights data is controlled entirely through permissions. To prevent users from viewing insights for a template, do not grant them the `view_insights` permission.
110+
152111
## Data Privacy
153112

154113
Template Insights aggregates usage data while respecting user privacy:
@@ -166,33 +125,6 @@ Template Insights data is also available via the Coder API. See the [API documen
166125
- `/api/v2/insights/user-activity` - User activity data
167126
- `/api/v2/insights/user-latency` - Connection latency metrics
168127

169-
## Troubleshooting
170-
171-
### No Data Displayed
172-
173-
If Template Insights shows no data:
174-
175-
1. **Check permissions**: Ensure you have `view_insights` permission on the template
176-
2. **Verify date range**: Make sure the selected date range includes workspace usage
177-
3. **Confirm workspace activity**: Users must have actively connected to workspaces (workspace creation alone doesn't generate insights)
178-
4. **Wait for data collection**: Insights data is collected from workspace agents and may take a few minutes to appear
179-
180-
### Missing Application Usage
181-
182-
If application usage appears incomplete:
183-
184-
- Ensure workspace agents are up-to-date with the latest Coder version
185-
- Verify that workspaces are running and agents are connected
186-
- Check that applications are configured correctly in the template
187-
188-
### Unexpected Latency Values
189-
190-
If latency metrics seem incorrect:
191-
192-
- Verify that workspace agents can reach the Coder server
193-
- Check for network issues between clients and workspaces
194-
- Ensure DERP (relay) servers are functioning if direct connections fail
195-
196128
## Related Documentation
197129

198130
- [Template Permissions](./template-permissions.md) - Learn about template access control
197 KB
Loading
105 KB
Loading

0 commit comments

Comments
 (0)