Create alert from pacemaker resource failover monitored by prometheus

I just started testing grafana ; connected to a prometheus
I would like to trigger an alert when a resource change owner :


the fail count increases or the status of the node changes