diff --git a/pkg/install/install.go b/pkg/install/install.go index 22d3dfb9..48fdec87 100644 --- a/pkg/install/install.go +++ b/pkg/install/install.go @@ -80,6 +80,9 @@ const ( SystemNamespace = "percona-everest" // monitoringNamespace is the namespace where the monitoring stack is installed. monitoringNamespace = "percona-everest-monitoring" + + // EverestMonitoringNamespaceEnvVar is the name of the environment variable that holds the monitoring namespace. + EverestMonitoringNamespaceEnvVar = "MONITORING_NAMESPACE" ) type ( @@ -486,6 +489,10 @@ func (o *Install) installOperator(ctx context.Context, channel, operatorName, na Name: kubernetes.EverestDBNamespacesEnvVar, Value: strings.Join(o.config.Namespaces, ","), }, + { + Name: EverestMonitoringNamespaceEnvVar, + Value: monitoringNamespace, + }, }, } }