Alerting config always failed

I using grafana version is enterprise, operating system is linux.

This is my query A,
sum(rate(emqx_messages_received{instance=~“.“,job=“emqx”}[$__rate_interval]) or irate(emqx_messages_received{instance=~”.”,job=“emqx”}[$__rate_interval]))

I want to create alert to test send email.

I test many times condition , likes sum(), ave(), test rule is failed. I expect it rule test success.

I do not know this confition how to write. I just want to config successful to send email.
Please help me , guiding how config alerting rule. Thanks.

You are using deprecated legacy alerting. IMHO it’s not worth to debug this problem, when you have to migrate to unified alerting at some point in the future.

Hi , May I know have some alert configuration example to study ? Thanks.

I would recommended for unified alerting (not old legacy):