Spring Boot, Development, Monitoring Tools, Java, Programming.
application.properties or application.yml, you can specify which roles are allowed to access specific Actuator endpoints: management.endpoint.<endpoint-name>.roles=<comma-separated-roles> For instance, to restrict access to the /actuator/metrics endpoint to users with the ADMIN role: