diff --git a/public/app/features/alerting/unified/components/receivers/AlertInstanceModalSelector.tsx b/public/app/features/alerting/unified/components/receivers/AlertInstanceModalSelector.tsx index 05ace6725db..cd3e7c5d284 100644 --- a/public/app/features/alerting/unified/components/receivers/AlertInstanceModalSelector.tsx +++ b/public/app/features/alerting/unified/components/receivers/AlertInstanceModalSelector.tsx @@ -60,6 +60,13 @@ export function AlertInstanceModalSelector({ if (!rules[instance.labels.alertname]) { rules[instance.labels.alertname] = []; } + const filteredAnnotations = Object.fromEntries( + Object.entries(instance.annotations).filter(([key]) => !key.startsWith('__')) + ); + const filteredLabels = Object.fromEntries( + Object.entries(instance.labels).filter(([key]) => !key.startsWith('__')) + ); + instance = { ...instance, annotations: filteredAnnotations, labels: filteredLabels }; rules[instance.labels.alertname].push(instance); }); }