Java service memory overflow

Java service memory overflow
Currently using Zabbix to monitor logs to achieve the effect of Java service memory overflow. So what functions or methods should be used to monitor Java service memory overflow after using Prometheus