diff --git a/public/app/features/alerting/unified/home/Insights.tsx b/public/app/features/alerting/unified/home/Insights.tsx index 2bf21799cc2..f98cd51622e 100644 --- a/public/app/features/alerting/unified/home/Insights.tsx +++ b/public/app/features/alerting/unified/home/Insights.tsx @@ -95,9 +95,9 @@ export const PANEL_STYLES = { minHeight: 300 }; const THIS_WEEK_TIME_RANGE = new SceneTimeRange({ from: 'now-1w', to: 'now' }); -const namespace = config.bootData.settings.namespace; +const namespace = config.namespace; -export const INSTANCE_ID = namespace.includes('stack-') ? namespace.replace('stack-', '') : undefined; +export const INSTANCE_ID = namespace.includes('stacks-') ? namespace.replace('stacks-', '') : undefined; const getInsightsDataSources = () => { const dataSourceSrv = getDataSourceSrv();