Skip to content

Commit a3ba939

Browse files
committed
docs: document --disable-template-insights flag
Proactively documents the --disable-template-insights flag from PR #20940 before it merges, ensuring documentation is ready when the feature lands.
1 parent f51987b commit a3ba939

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

docs/admin/templates/template-insights.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,22 @@ To grant a user access to Template Insights for a specific template, assign them
108108

109109
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.
110110

111+
### Disabling Template Insights
112+
113+
To completely disable Template Insights collection and display across your deployment, use the `--disable-template-insights` server flag:
114+
115+
```sh
116+
coder server --disable-template-insights
117+
```
118+
119+
Or set the environment variable:
120+
121+
```sh
122+
CODER_DISABLE_TEMPLATE_INSIGHTS=true
123+
```
124+
125+
When disabled, insights data will not be collected or stored, and the Insights tab will not be available in the UI.
126+
111127
## Data Privacy
112128

113129
Template Insights aggregates usage data while respecting user privacy:

0 commit comments

Comments
 (0)