Skip to main content

 Monitoring and Service Health

Microservices support health monitoring. This feature is very important to monitor the health and load of the service. The service health status is built on a simple http(s) request that is compatible with most load balancers.

For example, you can leverage Amazon AWS to provide automatic horizontal scaling based on processor loads, while using the Amazon AWS ELB service to automatically sign up new instances of our service to the load balancer.

The port 8065 is the default port for service monitoring. However, it can be overriden with the parameter --server.port when starting the microservice.

Once the service is ready, you can call the http://server:port/health URL to obtain the service status. If the service is ready and running, you will get UP status back as shown below.
Normally, one microservice should have only one producer service. If there is any other service configured, it will be available at the URL http://server:port/services.

The JVM health metrics are available at http://server:port/metrics. This information is very useful for the service and resources monitoring.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!