Alert not triggered for pod multiple restart

Hi ,
We have applied alerts for conditions - " pod restart for 3 times in last 5mins ". But we didn’t get any alert for the case. Below are the cases tried :

Case 1: Restarting docker container for 3 time within 5 mins.

Case 2: Change the pod status from “Running” to “Unavailable” and again changing back to “Running” for 3 times within 5 mins.

Please provide the inputs on the same .