diff --git a/public/app/features/alerting/unified/components/contact-points/components/UnusedBadge.tsx b/public/app/features/alerting/unified/components/contact-points/components/UnusedBadge.tsx index 73c11402c99..8d459985ee4 100644 --- a/public/app/features/alerting/unified/components/contact-points/components/UnusedBadge.tsx +++ b/public/app/features/alerting/unified/components/contact-points/components/UnusedBadge.tsx @@ -8,6 +8,7 @@ export const UnusedContactPointBadge = () => ( aria-label="unused" color="orange" icon="exclamation-triangle" - tooltip="This contact point is not used in any notification policy and it will not receive any alerts" + // is not used in any policy, but it can receive notifications from an auto auto generated policy. Non admin users can't see auto generated policies. + tooltip="This contact point is not used in any notification policy" /> ); diff --git a/public/app/features/alerting/unified/components/contact-points/utils.ts b/public/app/features/alerting/unified/components/contact-points/utils.ts index 479bde2b494..a07e3cc03dc 100644 --- a/public/app/features/alerting/unified/components/contact-points/utils.ts +++ b/public/app/features/alerting/unified/components/contact-points/utils.ts @@ -168,8 +168,7 @@ export function isAutoGeneratedPolicy(route: Route) { export function getUsedContactPoints(route: Route): string[] { const childrenContactPoints = route.routes?.flatMap((route) => getUsedContactPoints(route)) ?? []; - // we don't want to count the autogenerated policy for receiver level, for checking if a contact point is used - if (route.receiver && !isAutoGeneratedPolicy(route)) { + if (route.receiver) { return [route.receiver, ...childrenContactPoints]; }