使用貢獻者見解與 Amazon CloudWatch 互聯網監視器 - Amazon CloudWatch

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

使用貢獻者見解與 Amazon CloudWatch 互聯網監視器

CloudWatch 貢獻者見解可協助您識別應用程式的主要用戶端位置和網路 (ASNs或網際網路服務供應商)。使用下列範例參與者見解規則,開始使用 Amazon CloudWatch 網際網路監視器有用的規則。如需詳細資訊,請參閱建立 Contributor Insights 規則

若要進一步了解網路監視器中的用戶端位置準確度,請參閱網路監視器中的地理位置資訊和準確度

注意

Internet Monitor 每五分鐘會儲存一次網際網路測量資料,因此在您設定參與者見解規則之後,您必須將期間調整為五分鐘,才能看到圖表。

檢視熱門地點,並ASNs受到可用性影響的影響

若要檢視常用的用戶端位置並ASNs受到可用性下降的影響,您可以在語法編輯器中使用下列參與者見解規則。Replace (取代) monitor-name 使用您自己的顯示器名稱。

{ "Schema": { "Name": "CloudWatchLogRule", "Version": 1 }, "AggregateOn": "Sum", "Contribution": { "Filters": [ { "Match": "$.clientLocation.city", "IsPresent": true } ], "Keys": [ "$.clientLocation.city", "$.clientLocation.networkName" ], "ValueOf": "$.awsInternetHealth.availability.percentageOfTotalTrafficImpacted" }, "LogFormat": "JSON", "LogGroupNames": [ "/aws/internet-monitor/monitor-name/byCity" ] }

檢視常用的用戶端位置,並ASNs受到延遲影響

若要檢視常用的用戶端位置,並ASNs受往返時間 (延遲) 增加的影響,您可以在語法編輯器中使用下列參與者見解規則。Replace (取代) monitor-name 使用您自己的顯示器名稱。

{ "Schema": { "Name": "CloudWatchLogRule", "Version": 1 }, "AggregateOn": "Sum", "Contribution": { "Filters": [ { "Match": "$.clientLocation.city", "IsPresent": true } ], "Keys": [ "$.clientLocation.city", "$.clientLocation.networkName" ], "ValueOf": "$.awsInternetHealth.performance.percentageOfTotalTrafficImpacted" }, "LogFormat": "JSON", "LogGroupNames": [ "/aws/internet-monitor/monitor-name/byCity" ] }

檢視熱門用戶端位置,並ASNs受流量總百分比影響

若要檢視熱門用戶端位置以及ASNs受流量總百分比影響,您可以在語法編輯器中使用下列參與者見解規則。Replace (取代) monitor-name 使用您自己的顯示器名稱。

{ "Schema": { "Name": "CloudWatchLogRule", "Version": 1 }, "AggregateOn": "Sum", "Contribution": { "Filters": [ { "Match": "$.clientLocation.city", "IsPresent": true } ], "Keys": [ "$.clientLocation.city", "$.clientLocation.networkName" ], "ValueOf": "$.percentageOfTotalTraffic" }, "LogFormat": "JSON", "LogGroupNames": [ "/aws/internet-monitor/monitor-name/byCity" ] }