diff --git a/public/app/plugins/panel/alertlist/AlertInstances.tsx b/public/app/plugins/panel/alertlist/AlertInstances.tsx index 7437268bcad..85c40fd22b3 100644 --- a/public/app/plugins/panel/alertlist/AlertInstances.tsx +++ b/public/app/plugins/panel/alertlist/AlertInstances.tsx @@ -80,7 +80,10 @@ export const AlertInstances = ({ handleInstancesLimit(true); setDisplayInstances(true); }; - const totalInstancesNumber = limitInstances ? grafanaFilteredInstancesTotal : filteredAlerts.length; + const totalInstancesGrafana = limitInstances ? grafanaFilteredInstancesTotal : filteredAlerts.length; + const totalInstancesNotGrafana = filteredAlerts.length; + const totalInstancesNumber = isGrafanaAlert ? totalInstancesGrafana : totalInstancesNotGrafana; + const limitStatus = limitInstances ? `Showing ${INSTANCES_DISPLAY_LIMIT} of ${grafanaTotalInstances} instances` : `Showing all ${grafanaTotalInstances} instances`;