Posted On: Nov 18, 2019
CloudWatch Embedded Metric Format enables you to ingest complex high-cardinality application data in the form of logs and easily generate actionable metrics from them. It has traditionally been hard to generate actionable custom metrics from your ephemeral resources such as Lambda functions, and containers. With this launch, you do not have to rely on complex architecture or multiple third party tools to gain insights into these environments. By sending your logs in the new Embedded Metric Format, you can now easily create custom metrics without having to instrument or maintain separate code, while gaining powerful analytical capabilities on your log data.
There are several benefits of this new feature. You can embed custom metrics alongside detailed log event data, and CloudWatch will automatically extract the custom metrics so you can visualize and alarm on them, for real-time incident detection. Additionally, the detailed log events associated with the extracted metrics can be queried using CloudWatch Logs Insights to provide deep insights into the root causes of operational events.
You can generate log events in the Embedded Metric Format using the open-sourced client libraries available on GitHub or manually construct them conforming to a defined specification. Once generated, these events are sent to CloudWatch using the client libraries, the CloudWatch Agent or by directly calling the PutLogEvents API.
CloudWatch Embedded Metric Format is available in all AWS Regions where CloudWatch Logs is available. There are no additional charges for using this new feature, and you simply pay for usage of CloudWatch logs and metrics. To learn more, visit the documentation on CloudWatch Embedded Metric Format.