I am using MYSQL xtradb cluster with 5 nodes. I defined an alarm on pmm for Mysql down situations and there is no problem, it works properly.
Recently, nodes were disconnected from the cluster, I was not aware of this situation because the services were working. At the cluster level, I want to receive an alert when any node falls out of the cluster . If there is a ready template or method for this, please let me know.
for version 2.41.2 you will be able to find Alerting → Alert rules
To create a alert rule you need first to create template for this:
For expression you can use mysql_global_status_wsrep_cluster_status[5m] < [[ .threshold ]]
and as threshold value set 1 so alert will be triggered anytime when your pxc status is not equal 1 (Sync )
and onse it’s created you will be able to add rule: