Your Spring Boot application is running on Amazon ECS. API requests are succeeding, business operations are executing, and the application logs look normal.
But when you open Amazon CloudWatch, the custom metrics you expected to see are missing.
You check the dashboard. No data.
You check the metric namespace. Nothing appears.
You wait a few minutes and refresh. Still nothing.
Where should you start debugging?
The problem could be in the application, Micrometer configuration, metric publishing, AWS permissions, network connectivity, or the way you are querying CloudWatch.
In this article, we'll build a small example and follow the complete path from recording a metric in Spring Boot to verifying it in CloudWatch.
By the end, you'll have a systematic troubleshooting process you can reuse in your own applications.
1.…