Since our Kotlin microservices run in the JVM, we can use the Java Managing Extensions (JMX) to provide our monitoring information to external systems. But enabling JMX will also allow us to define custom tools that we can use to either retrieve custom information of our microservice or even act on them, for example, allow us to recover from a failure.
Java Managing Extensions
Understanding JMX
Since Java 6 JMX is shipped with the Java SDK, it allows Java programs to provide monitoring information to other systems and to enable the administration of our Java applications.
This is a very powerful feature that most third-party monitoring tools can use to retrieve information on our microservices.
JMX also allows us to expose...