

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# CloudWatch 中的基本監控和詳細監控
<a name="cloudwatch-metrics-basic-detailed"></a>

CloudWatch 提供兩種類別的監控：*基本監控*和*詳細監控*。

許多 AWS 服務透過將一組預設指標發佈至 CloudWatch 來提供基本監控，無需向客戶收費。根據預設，當您開始使用其中一項時 AWS 服務，會自動啟用基本監控。如需提供基本監控的服務清單，請參閱[AWS 發佈 CloudWatch 指標的 服務](aws-services-cloudwatch-metrics.md)。

僅部分服務提供詳細監控。詳細監控會產生費用。若要將其用於 AWS 服務，您必須選擇啟用它。如需定價的詳細資訊，請參閱 [Amazon CloudWatch 定價](https://aws.amazon.com/cloudwatch/pricing)。

詳細監控選項會因提供此監控的服務而異。例如，Amazon EC2 詳細監控提供時間間隔更小的指標，發布間隔為一分鐘，而 Amazon EC2 基本監控的發怖間隔為五分鐘。Amazon S3 和適用於 Apache Kafka 的 Amazon Managed Streaming 的詳細監控則提供更為精細的指標。

在不同 AWS 服務中，詳細監控也有不同的名稱。例如，在 Amazon EC2 中稱為詳細監控，在 AWS Elastic Beanstalk 中稱為增強型監控，在 Amazon S3 中稱為請求指標。

使用 Amazon EC2 的詳細監控，可幫助您更好地管理 Amazon EC2 資源，以便您可以更快地尋找趨勢並採取行動。若是使用 Amazon S3，則可以使用一分鐘間隔的請求指標，幫助您快速找出操作問題並採取行動。在 Amazon MSK 上，如果啟用 `PER_BROKER`、`PER_TOPIC_PER_BROKER` 或 `PER_TOPIC_PER_PARTITION` 層級監控，可以使用更多指標，獲得更詳細的資訊。

下表列出提供詳細監控的服務。表中還包括這些服務的文件連結，這些文件會詳細介紹詳細監控，並提供使用說明。


| 服務 | 文件 | 
| --- | --- | 
| Amazon API Gateway | [API Gateway 指標的維度](https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-metrics-and-dimensions.html#api-gateway-metricdimensions) | 
| AWS AppSync | [ CloudWatch 指標](https://docs.aws.amazon.com/appsync/latest/devguide/monitoring.html#cw-metrics) | 
| Amazon CloudFront | [檢視額外的 CloudFront 分佈指標](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/viewing-cloudfront-metrics.html#monitoring-console.distributions-additional) | 
| Amazon EC2 | [ 管理 EC2 執行個體的詳細監控](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/manage-detailed-monitoring.html) | 
| Elastic Beanstalk | [增強型運作狀態報告與監控](https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/health-enhanced.html) | 
| Amazon Kinesis Data Streams | [增強型分區層級指標](https://docs.aws.amazon.com/streams/latest/dev/monitoring-with-cloudwatch.html#kinesis-metrics-shard) | 
| AWS Lambda | [ 事件來源映射指標](https://docs.aws.amazon.com/lambda/latest/dg/monitoring-metrics-types.html#event-source-mapping-metrics) | 
| Amazon MSK | [用於 CloudWatch 監控的 Amazon MSK 指標](https://docs.aws.amazon.com/msk/latest/developerguide/metrics-details.html) | 
| Amazon S3 | [CloudWatch 中的 Amazon S3 請求指標](https://docs.aws.amazon.com/AmazonS3/latest/userguide/metrics-dimensions.html#s3-request-cloudwatch-metrics) | 
| Amazon SES | [使用 Amazon SES 事件發布功能收集 CloudWatch 詳細監控指標](https://docs.aws.amazon.com/ses/latest/dg/event-publishing-add-event-destination-cloudwatch.html#event-publishing-add-event-destination-cloudwatch-dimensions)。 | 

此外，CloudWatch out-of-the-box監控解決方案，其中包含更詳細的指標和部分 AWS 服務的預先建立儀表板，如下表所示。


| 服務 | 功能文件 | 
| --- | --- | 
| Lambda | [ Lambda Insights](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Lambda-Insights.html) | 
| Amazon ECS | [ 適用於 Amazon ECS 的 Container Insights](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/deploy-container-insights-ECS.html) | 
| Amazon EKS | [ 適用於 Amazon EKS 和 Kubernetes 的 Container Insights](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/deploy-container-insights-EKS.html) | 
| Amazon RDS | [CloudWatch Database Insights](Database-Insights.md) | 
| Amazon Aurora | [CloudWatch Database Insights](Database-Insights.md) | 