14 Management & Monitoring

Using the CLI

If you are creating your project using the Micronaut CLI, supply the management feature to configure the management endpoints in your project:

  1. $ mn create-app my-app features management

Inspired by Spring Boot and Grails, the Micronaut management dependency adds support for monitoring of your application via endpoints: special URIs that return details about the health and state of your application. The management endpoints are also integrated with Micronaut’s security dependency, allowing for sensitive data to be restricted to authenticated users in your security system (see Built-in Endpoints Access in the Security section).

To use the management features described in this section, add the dependency on your classpath.

  1. implementation("io.micronaut:micronaut-management")
  1. <dependency>
  2. <groupId>io.micronaut</groupId>
  3. <artifactId>micronaut-management</artifactId>
  4. </dependency>