I’m trying to connect a Spring Boot 3 application to AWS CloudWatch following this guide.
What I’ve done so far:
- Added
spring-boot-starter-actuator
- Added
micrometer-registry-cloudwatch2
- Added
spring-cloud-aws-starter
- Added a property for
management.metrics.export.cloudwatch.namespace
- Set
management.metrics.export.cloudwatch.enabled = true
- Defined environment variables
AWS_ACCESS_KEY_ID
andAWS_SECRET_ACCESS_KEY
for the container the application is running in.
AFAIU I should be seeing some new metrics inside CloudWatch with the defined namespace. But there’s nothing. What could I be missing?