1.

What is an Actuator?

Answer»

Spring Boot Actuator provides the ability to inspect the internals of an application at runtime. It provides application data on auditing, metrics, bean details, version details, CONFIGURATIONS, logger details via REST (HTTP) endpoints. These endpoints help in monitoring and managing a Spring Boot application in production. We can also add custom endpoints apart from the default 16 provided. HOWEVER, it should not be considered as a replacement for production-grade monitoring solutions though it provides a great starting point.

The Actuator endpoint acts as a root for all other endpoints: http://localhost:8080/application

Below are a few of the significant endpoints exposed:

  1. Environment details:

This endpoint provides information about the operating SYSTEM, JVM, installation, system environment variables, and the values configured in application properties files.

http://localhost:8080/application/env
  1. Health:

This service provides details of the disk SPACE and status of the application.

http://localhost:8080/application/health
  1. Beans:

This endpoint provides the details about all the beans that are loaded into the Spring context. It provides details like name, scope, type, location, and dependencies of the Bean.

http://localhost:8080/application/beans
  1. Metrics:

This endpoint shows metrics about Server memory, processors; JVM details like a heap, threads, garbage collection, etc.

http://localhost:8080/application/metrics
  1. Debugging:

Below actuator endpoints are exposed for debugging application:

/application/heapdump: Provides a heap dump /application/trace: Provides a trace of the last few REQUESTS serviced by the application /application/dump: Provides a thread dump


Discussion

No Comment Found