February 2018
Intermediate to advanced
406 pages
9h 55m
English
Instrumentation is important for cloud applications. Your service should expose health check and metrics so that it can be monitored better. Spring Boot allows for easier instrumentation through the actuator module.
Include the following in your POM:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
Run the service. During startup, you will see a number of mappings being created.
You can access these URLs (such as http://localhost:8080/env) directly and see the information displayed:
{ "profiles": [], "server.ports": { "local.server.port": 8082 }, "commandLineArgs": { "env": "dev/" }, "servletContextInitParams": {}, "systemProperties": { "java.runtime.name": ...Read now
Unlock full access