diff --git a/core/metrics/insights.go b/core/metrics/insights.go index 27d154f1e..6076be0a5 100644 --- a/core/metrics/insights.go +++ b/core/metrics/insights.go @@ -187,7 +187,6 @@ var staticData = sync.OnceValue(func() insights.Data { data.Config.EnablePrometheus = conf.Server.Prometheus.Enabled data.Config.TranscodingCacheSize = conf.Server.TranscodingCacheSize data.Config.ImageCacheSize = conf.Server.ImageCacheSize - data.Config.ScanSchedule = conf.Server.ScanSchedule data.Config.SessionTimeout = uint64(math.Trunc(conf.Server.SessionTimeout.Seconds())) data.Config.SearchFullString = conf.Server.SearchFullString data.Config.RecentlyAddedByModTime = conf.Server.RecentlyAddedByModTime @@ -195,6 +194,10 @@ var staticData = sync.OnceValue(func() insights.Data { data.Config.BackupSchedule = conf.Server.Backup.Schedule data.Config.BackupCount = conf.Server.Backup.Count data.Config.DevActivityPanel = conf.Server.DevActivityPanel + data.Config.ScannerEnabled = conf.Server.Scanner.Enabled + data.Config.ScanSchedule = conf.Server.Scanner.Schedule + data.Config.ScanWatcherWait = uint64(math.Trunc(conf.Server.Scanner.WatcherWait.Seconds())) + data.Config.ScanOnStartup = conf.Server.Scanner.ScanOnStartup return data }) diff --git a/core/metrics/insights/data.go b/core/metrics/insights/data.go index cf28c43a3..9df547b4a 100644 --- a/core/metrics/insights/data.go +++ b/core/metrics/insights/data.go @@ -43,7 +43,10 @@ type Data struct { LogLevel string `json:"logLevel,omitempty"` LogFileConfigured bool `json:"logFileConfigured,omitempty"` TLSConfigured bool `json:"tlsConfigured,omitempty"` + ScannerEnabled bool `json:"scannerEnabled,omitempty"` ScanSchedule string `json:"scanSchedule,omitempty"` + ScanWatcherWait uint64 `json:"scanWatcherWait,omitempty"` + ScanOnStartup bool `json:"scanOnStartup,omitempty"` TranscodingCacheSize string `json:"transcodingCacheSize,omitempty"` ImageCacheSize string `json:"imageCacheSize,omitempty"` EnableArtworkPrecache bool `json:"enableArtworkPrecache,omitempty"`