Alarm when database is down

Hello, Is it possible to configure an alert when the database is down? I get the alert triggered configuring ‘If execution error or timeout’ to Alerting but Grafana is not able to send the email. Error is Execution Error: tsdb.HandleRequest() response error &{dial tcp connect: connection refused.
Database is Postgresql, grafana config is stored in the database.

Hi! :wave: The error message is because Grafana cannot connect to the database. Is Postgres running and listening on localhost port 5432?

Hello, Postgresql is down intentionally as I want to report that condition.
The issue was finally that the customer mail sever was blocking my address, the email was being generated in grafana.
Thank you.