

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

# Amazon CloudWatch Application Insights 的運作方式
<a name="appinsights-how-works"></a>

CloudWatch Application Insights 可監控應用程式資源。以下資訊可說明 Application Insights 的運作方式。

**Topics**
+ [Application Insights 如何監控應用程式](#appinsights-how-works-sub)
+ [資料保留](#appinsights-retention)
+ [配額](#appinsights-limits)
+ [AWS CloudWatch Application Insights 使用的 Systems Manager (SSM) 套件](appinsights-ssm-packages.md)
+ [AWS CloudWatch Application Insights 使用的 Systems Manager (SSM) 文件](appinsights-ssm-documents.md)

## Application Insights 如何監控應用程式
<a name="appinsights-how-works-sub"></a>

以下資訊可說明 Application Insights 如何監控應用程式。

**Application Discovery 和組態**  
第一次在 CloudWatch Application Insights 中新增應用程式時會掃描應用程式元件，建議監控應用程式的關鍵指標、日誌和其他資料來源。然後，您就可以根據這些建議來設定您的應用程式。

**資料預先處理**  
CloudWatch Application Insights 持續分析在各應用程式資源中受監控的資料來源，以探索指標異常和日誌錯誤 (觀察)。

**智慧型問題偵測**  
CloudWatch Application Insights 引擎使用分類演算法和內建規則建立觀察的關聯，以偵測應用程式中的問題。為協助故障診斷，它會建立包含問題情境資訊的自動化 CloudWatch 儀表板。

**提醒和動作**  
當 CloudWatch Application Insights 偵測到應用程式的問題時，會產生 CloudWatch Events 來通知您該問題。如需如何設定這些事件的詳細資訊，請參閱 [偵測到的問題的 Application Insights CloudWatch Events](appinsights-cloudwatch-events.md)。此外，還可以[設定 Amazon SNS 通知](appinsights-problem-notifications.md)，以接收偵測到問題的提醒。

**範例藍本**

您有 SQL Server 資料庫支援的 ASP .NET 應用程式。突然間，您的資料庫因記憶體高壓開始故障。這可能會導致應用程式效能降級，而且 Web 伺服器和負載平衡器可能發生 HTTP 500 錯誤。

使用 CloudWatch Application Insights 及其智慧型分析，您可以檢查顯示相關指標和日誌檔程式碼片段的動態建立儀表板，找出造成問題的應用程式層。在本例中，問題可能發生在 SQL 資料庫 layer。

## 資料保留
<a name="appinsights-retention"></a>

CloudWatch Application Insights 會將問題保留 55 天，觀察保留 60 天。

## 配額
<a name="appinsights-limits"></a>

如需 CloudWatch Application Insights 的預設配額，請參閱 [Amazon CloudWatch Application Insights 端點和配額](https://docs.aws.amazon.com/general/latest/gr/applicationinsights.html)。除非另有說明，否則每個配額都是每個 AWS 區域。請聯絡 [AWS Support](https://console.aws.amazon.com/support/home#/case/create?issueType=technical) 請求提高您的服務配額。許多服務包含的配額無法變更。如需有關特定服務的配額詳細資訊，請參閱該服務的文件。