

# Contributor Insights を使用して上位の場所と ISPs を特定する
<a name="CloudWatch-IM-view-cw-tools-contributor-insights"></a>

CloudWatch Contributor Insights は、AWS アプリケーションで上位のクライアントの場所と ASN (通常は、インターネット サービス プロバイダーまたは ISP) を特定するのに役立ちます。Internet Monitor で役立つルールの使用開始には、以下の Contributor Insights ルール例を使用できます。詳細については、「[CloudWatch で Contributor Insights ルールを作成する](ContributorInsights-CreateRule.md)」を参照してください。

Internet Monitor のクライアントのロケーションの精度の詳細については、「[Internet Monitor の位置情報と精度](CloudWatch-IM-inside-internet-monitor.md#IMGeolocationSourceAccuracy)」を参照してください。

**注記**  
Internet Monitor は 5 分ごとにインターネット測定値を保存するので、Contributor Insights ルールを設定した後は、グラフが表示される間隔を 5 分に調整する必要があります。

**可用性の影響を受ける上位のロケーションと ASN を表示する**

可用性の低下によって影響を受けた上位のクライアントロケーションと ASN を表示するには、構文エディタで次の Contributor Insights ルールを使用します。*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"
    ]
}
```

**レイテンシーの影響を受ける上位のクライアントロケーションと ASN を表示する**

往復時間 (レイテンシー) の増加によって影響を受けた上位のクライアントロケーションと ASN を表示するには、構文エディタで次の Contributor Insights ルールを使用します。*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"
    ]
}
```

**トラフィックの合計パーセンテージによって影響を受けた上位のクライアントロケーションと ASN を表示する**

トラフィックの合計パーセンテージによって影響を受けた上位のクライアントロケーションと ASN を表示するには、構文エディタで次の Contributor Insights ルールを使用します。*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"
    ]
}
```