

# 发布使用嵌入式指标格式的日志
<a name="CloudWatch_Embedded_Metric_Format_Generation"></a>

 您可以使用以下方法生成嵌入式指标格式日志：
+  使用 [开源客户端库](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Embedded_Metric_Format_Libraries.html) 生成和发送日志。
+  按照 [嵌入式指标格式规范](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Embedded_Metric_Format_Specification.html) 手动生成日志，然后使用 [CloudWatch 代理](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Embedded_Metric_Format_Generation_CloudWatch_Agent.html) 或 [PutLogEvents API](https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutLogEvents.html) 发送日志。

 以下主题提供了有关嵌入式指标的更多信息。

**Topics**
+ [使用客户端库创建使用嵌入式指标格式的日志](CloudWatch_Embedded_Metric_Format_Libraries.md)
+ [规范：嵌入式指标格式](CloudWatch_Embedded_Metric_Format_Specification.md)
+ [使用 PutLogEvents API 发送手动创建的嵌入式指标格式日志](CloudWatch_Embedded_Metric_Format_Generation_PutLogEvents.md)
+ [使用 CloudWatch 代理发送嵌入式指标格式日志](CloudWatch_Embedded_Metric_Format_Generation_CloudWatch_Agent.md)
+ [通过 AWS Distro for OpenTelemetry 使用嵌入式指标格式](CloudWatch_Embedded_Metric_Format_OpenTelemetry.md)