Skip to content

Commit

Permalink
server: create cluster setting for persisted insights
Browse files Browse the repository at this point in the history
A new table for persisted Insights will be created,
and the endpoints to retrive Insights information will be able
to use it. This commit creates a cluster settings that can be used
to disabled its usage, in case there is a problem with its content.

Fixes cockroachdb#110813

Release note: None
  • Loading branch information
maryliag committed Sep 18, 2023
1 parent e25067a commit d6143c1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pkg/server/cluster_settings.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,11 @@ var StatsActivityUIEnabled = settings.RegisterBoolSetting(
"sql.stats.activity.ui.enabled",
"enable the combined statistics endpoint to get data from the system activity tables",
true)

// PersistedInsightsUIEnabled controls if the insights endpoint uses
// the persisted statement_execution_insights and transaction_execution_insights tables.
var PersistedInsightsUIEnabled = settings.RegisterBoolSetting(
settings.TenantWritable,
"sql.stats.persisted_insights.ui.enabled",
"enable the insights endpoint to get data from the persisted insights tables",
false)

0 comments on commit d6143c1

Please sign in to comment.