35.8 CloudWatch Embedded Metrics Format (EMF): Logging Custom Metrics
Right, let’s talk about getting your custom metrics out of your application logs and into CloudWatch where they belong. You see, CloudWatch is a bit of a diva. It loves metrics, but it demands they be presented in a very specific, structured way. You could use the PutMetricData API call from your application code, but that’s a great way to drown yourself in network calls, SDK overhead, and code that’s more about telemetry than business logic.