Analytics: Enable grafana and plugin update checks to be operated independently (#46352)

* add separate cfg for controlling plugin update checks

* https

* add specific version note to docs

* pr feedback

* fixup
This commit is contained in:
Will Browne
2022-04-06 10:50:21 +02:00
committed by GitHub
parent 9a6fd8572a
commit f3c1448b57
6 changed files with 34 additions and 12 deletions
+1 -1
View File
@@ -28,7 +28,7 @@ type GrafanaService struct {
func ProvideGrafanaService(cfg *setting.Cfg) *GrafanaService {
return &GrafanaService{
enabled: cfg.CheckForUpdates,
enabled: cfg.CheckForGrafanaUpdates,
grafanaVersion: cfg.BuildVersion,
httpClient: http.Client{Timeout: 10 * time.Second},
log: log.New("grafana.update.checker"),
+1 -1
View File
@@ -29,7 +29,7 @@ type PluginsService struct {
func ProvidePluginsService(cfg *setting.Cfg, pluginStore plugins.Store) *PluginsService {
return &PluginsService{
enabled: cfg.CheckForUpdates,
enabled: cfg.CheckForPluginUpdates,
grafanaVersion: cfg.BuildVersion,
httpClient: &http.Client{Timeout: 10 * time.Second},
log: log.New("plugins.update.checker"),