Configuring Alerts for Multiple Rows of table in a Single Rule and Using Notification Templates in Grafana

I have a table with columns for KPI name, timestamp, and successRate. I want to trigger an alert for each individual row where certain conditions, like a threshold breach, are met. My goal is to evaluate each row independently, and if a threshold is breached for any specific KPI, an alert should be triggered containing the KPI name, timestamp, and successRate.

Additionally, I want to configure this in a single alert rule, as I have multiple KPIs, and I don’t want to create separate alerts for each KPI. How can I efficiently configure this in Grafana so that one rule evaluates all KPIs and triggers alerts as needed?

Another question: I’ve created a notification template, and I’m wondering how Grafana handles multiple rows triggering alerts. How does the notification template determine which row’s values to add into the alert message when multiple rows are involved? Do I need to write specific labels for each row, or is there a more efficient way to handle this?