diff --git a/public/app/features/alerting/unified/api/alertRuleApi.ts b/public/app/features/alerting/unified/api/alertRuleApi.ts index faebd9334ed..35569448d9b 100644 --- a/public/app/features/alerting/unified/api/alertRuleApi.ts +++ b/public/app/features/alerting/unified/api/alertRuleApi.ts @@ -246,7 +246,9 @@ export const alertRuleApi = alertingApi.injectEndpoints({ const { path, params } = rulerUrlBuilder(rulerConfig).namespace(namespace); return { url: path, params }; }, - providesTags: (_result, _error, { namespace }) => [{ type: 'RuleNamespace', id: namespace }], + providesTags: (_result, _error, { namespace, rulerConfig }) => [ + { type: 'RuleNamespace', id: `${rulerConfig.dataSourceUid}/${namespace}` }, + ], }), // TODO This should be probably a separate ruler API file