Monitoring alerts for all pods

Is there a way to trigger alerts for all pods when memory/cpu usage is getting close the the limit running in a kubernetes.

I’ve tried playing with the alert rules, but so far I can only setup alerts for one specific pod.