chore: rename flag to disable template insights (#21329)

Because this affects more than just the template insights
page (specifically it also affects the deployment stats endpoint which
is shown on bottom bar and Prometheus), the group is being renamed
generically to just "stats collection".  In the future if we need to
affect the other stats we can put those options here.

Then, because this change only affects a portion of stats, specifically
usage stats like connection and application time, bytes sent, etc, add a
new sub-group called "usage stats".

Then finally add back the "enable" flag.  This also gives us a place to
one day place an "anonymize" flag if we need to go that route.
This commit is contained in:
Asher
2026-01-05 11:44:06 -09:00
committed by GitHub
parent 5691d38db7
commit 4a97df3768
12 changed files with 154 additions and 103 deletions
+7 -9
View File
@@ -291,15 +291,13 @@ INTROSPECTION / PROMETHEUS OPTIONS:
--prometheus-enable bool, $CODER_PROMETHEUS_ENABLE
Serve prometheus metrics on the address defined by prometheus address.
INTROSPECTION / TEMPLATE INSIGHTS OPTIONS:
--template-insights-enable bool, $CODER_TEMPLATE_INSIGHTS_ENABLE (default: true)
Enable the collection and display of template insights along with the
associated API endpoints. This will also enable aggregating these
insights into daily active users, application usage, and transmission
rates for overall deployment stats. When disabled, these values will
be zero, which will also affect what the bottom deployment overview
bar displays. Disabling will also prevent Prometheus collection of
these values.
INTROSPECTION / STATS COLLECTION / USAGE STATS OPTIONS:
--stats-collection-usage-stats-enable bool, $CODER_STATS_COLLECTION_USAGE_STATS_ENABLE (default: true)
Enable the collection of application and workspace usage along with
the associated API endpoints and the template insights page. Disabling
this will also disable traffic and connection insights in the
deployment stats shown to admins in the bottom bar of the Coder UI,
and will prevent Prometheus collection of these values.
INTROSPECTION / TRACING OPTIONS:
--trace-logs bool, $CODER_TRACE_LOGS