From 8e663b50e96c9acfbd0e456e9c3dde020eaa2133 Mon Sep 17 00:00:00 2001 From: Andres Martinez Gotor Date: Thu, 17 Jul 2025 11:37:32 +0200 Subject: [PATCH] Advisor: Allow to define enterprise checks (#108114) --- pkg/registry/apps/wireset.go | 3 --- pkg/services/pluginsintegration/pluginsintegration.go | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/registry/apps/wireset.go b/pkg/registry/apps/wireset.go index 84b9d9b745f..5e20014ff9b 100644 --- a/pkg/registry/apps/wireset.go +++ b/pkg/registry/apps/wireset.go @@ -3,7 +3,6 @@ package appregistry import ( "github.com/google/wire" - "github.com/grafana/grafana/apps/advisor/pkg/app/checkregistry" "github.com/grafana/grafana/pkg/registry/apps/advisor" "github.com/grafana/grafana/pkg/registry/apps/alerting/notifications" "github.com/grafana/grafana/pkg/registry/apps/investigations" @@ -15,7 +14,5 @@ var WireSet = wire.NewSet( playlist.RegisterApp, investigations.RegisterApp, advisor.RegisterApp, - checkregistry.ProvideService, notifications.RegisterApp, - wire.Bind(new(checkregistry.CheckService), new(*checkregistry.Service)), ) diff --git a/pkg/services/pluginsintegration/pluginsintegration.go b/pkg/services/pluginsintegration/pluginsintegration.go index 2bc2415b074..cceac8c48e1 100644 --- a/pkg/services/pluginsintegration/pluginsintegration.go +++ b/pkg/services/pluginsintegration/pluginsintegration.go @@ -6,6 +6,7 @@ import ( "github.com/grafana/grafana-plugin-sdk-go/backend" "github.com/prometheus/client_golang/prometheus" + "github.com/grafana/grafana/apps/advisor/pkg/app/checkregistry" "github.com/grafana/grafana/pkg/infra/tracing" "github.com/grafana/grafana/pkg/plugins" "github.com/grafana/grafana/pkg/plugins/auth" @@ -151,6 +152,8 @@ var WireExtensionSet = wire.NewSet( wire.Bind(new(provisionedplugins.Manager), new(*provisionedplugins.Noop)), sources.ProvideService, wire.Bind(new(sources.Registry), new(*sources.Service)), + checkregistry.ProvideService, + wire.Bind(new(checkregistry.CheckService), new(*checkregistry.Service)), ) func ProvideClientWithMiddlewares(