diff --git a/component/prometheus/operator/podmonitors/operator.go b/component/prometheus/operator/podmonitors/operator.go index c35c277acee0..41fb781f5db4 100644 --- a/component/prometheus/operator/podmonitors/operator.go +++ b/component/prometheus/operator/podmonitors/operator.go @@ -6,13 +6,14 @@ import ( "github.com/grafana/agent/component/prometheus/operator/common" "github.com/grafana/agent/service/cluster" "github.com/grafana/agent/service/http" + "github.com/grafana/agent/service/labelstore" ) func init() { component.Register(component.Registration{ Name: "prometheus.operator.podmonitors", Args: operator.Arguments{}, - NeedsServices: []string{cluster.ServiceName, http.ServiceName}, + NeedsServices: []string{cluster.ServiceName, http.ServiceName, labelstore.ServiceName}, Build: func(opts component.Options, args component.Arguments) (component.Component, error) { return common.New(opts, args, common.KindPodMonitor) diff --git a/component/prometheus/operator/probes/probes.go b/component/prometheus/operator/probes/probes.go index e8d73ef10bf6..00dad3fd9821 100644 --- a/component/prometheus/operator/probes/probes.go +++ b/component/prometheus/operator/probes/probes.go @@ -6,13 +6,14 @@ import ( "github.com/grafana/agent/component/prometheus/operator/common" "github.com/grafana/agent/service/cluster" "github.com/grafana/agent/service/http" + "github.com/grafana/agent/service/labelstore" ) func init() { component.Register(component.Registration{ Name: "prometheus.operator.probes", Args: operator.Arguments{}, - NeedsServices: []string{cluster.ServiceName, http.ServiceName}, + NeedsServices: []string{cluster.ServiceName, http.ServiceName, labelstore.ServiceName}, Build: func(opts component.Options, args component.Arguments) (component.Component, error) { return common.New(opts, args, common.KindProbe) diff --git a/component/prometheus/operator/servicemonitors/servicemonitors.go b/component/prometheus/operator/servicemonitors/servicemonitors.go index 9abc214b969d..8df947f10883 100644 --- a/component/prometheus/operator/servicemonitors/servicemonitors.go +++ b/component/prometheus/operator/servicemonitors/servicemonitors.go @@ -6,13 +6,14 @@ import ( "github.com/grafana/agent/component/prometheus/operator/common" "github.com/grafana/agent/service/cluster" "github.com/grafana/agent/service/http" + "github.com/grafana/agent/service/labelstore" ) func init() { component.Register(component.Registration{ Name: "prometheus.operator.servicemonitors", Args: operator.Arguments{}, - NeedsServices: []string{cluster.ServiceName, http.ServiceName}, + NeedsServices: []string{cluster.ServiceName, http.ServiceName, labelstore.ServiceName}, Build: func(opts component.Options, args component.Arguments) (component.Component, error) { return common.New(opts, args, common.KindServiceMonitor)