

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

# 尺規疑難排解
<a name="Troubleshooting-rule-fail-error"></a>

使用 [使用 CloudWatch Logs 監控 Amazon Managed Service for Prometheus 事件](CW-logs.md) 時，您可以進行警示管理員和尺規相關問題的疑難排解。本節包含尺規相關的疑難排解主題。

**

**當日誌包含以下標尺失敗錯誤**

```
{
    "workspaceId": "ws-12345c67-89c0-4d12-345b-f14db70f7a99",
    "message": {
        "log": "Evaluating rule failed, name=failure, group=canary_long_running_vl_namespace, namespace=canary_long_running_vl_namespace, err=found duplicate series for the match group {dimension1=\\\"1\\\"} on the right hand-side of the operation: [{__name__=\\\"fake_metric2\\\", dimension1=\\\"1\\\", dimension2=\\\"b\\\"}, {__name__=\\\"fake_metric2\\\", dimension1=\\\"1\\\", dimension2=\\\"a\\\"}];many-to-many matching not allowed: matching labels must be unique on one side",
        "level": "ERROR",
        "name": "failure",
        "group": "canary_long_running_vl_namespace",
        "namespace": "canary_long_running_vl_namespace"
    },
    "component": "ruler"
}
```

這表示執行規則時發生一些錯誤。

**採取動作**

使用錯誤訊息疑難排解規則執行。