Metrics are collected using Micrometer.
See production ready metrics for how this integrates with Spring boot.
In production/test, metrics are exported to AWS Cloudwatch.
To inspect the metrics in development, enable the web endpoints in application.yml
:
management:
endpoints:
web:
exposure:
include: "*"
You can then view metrics at http://localhost:8081/actuator/metrics