Failed to evaluate queries and expressions: input data must be a wide series but got type long (input refid)

@sam2b3e is correct. Grafana Alerting works on numeric data, and Loki alerts are expected to use count or count_over_time.