JMX monitoring with metrics