How to configure a deadlock alert on pmm integrated alerting

Description:

How to configure a deadlock alet on pmm integrated alerting.

Steps to Reproduce:

Try to add an alert on deadlocks using pmm integrated alerting.

Version:

PMM from 2.27 to 2.42

Logs:

Expected Result:

Send an email alert when deadlocks happens.

Actual Result:

I have not found an Alert rule template to generate a new Alert rule for deadlocks.

Additional Information:

Within Percona Monitoring and Management, I want to add an alert that can warn about deadlocks that occur in MySQL or MariaDB databases, however, I have not found an Alert rule template for this purpose. I would like to know if it is possible to monitor this “deadlock” event and send alerts about it using PMM.