谷歌云监控未触发事件

时间:2020-08-20 02:59:08

标签: google-cloud-platform stackdriver google-cloud-monitoring

指标超出阈值。
但不会在2020/08/19 14:46(JST +0900)指标上触发的事件。
我不知道原因,所以请帮助我。

警报策略设置:

{
  "name": "projects/XXXXXXX/alertPolicies/17974723355996026588",
  "displayName": "app_more_than_error ",
  "combiner": "OR",
  ~~~~~
  "conditions": [
    {
      "conditionThreshold": {
        "filter": "metric.type=\"logging.googleapis.com/user/app_more_than_error\" resource.type=\"gke_container\"",
        "comparison": "COMPARISON_GT",
        "thresholdValue": 0.01,
        "duration": "0s",
        "trigger": {
          "count": 1
        },
        "aggregations": [
          {
            "alignmentPeriod": "60s",
            "perSeriesAligner": "ALIGN_MEAN",
            "crossSeriesReducer": "REDUCE_SUM"
          }
        ]
      },
      "displayName": "logging/user/app_more_than_error [SUM]",
      "name": "projects/XXXXXXX/alertPolicies/17974723355996026588/conditions/17974723355996028427"
    }
  ],
  "notificationChannels": [
    "projects/XXXXXXX/notificationChannels/10401003724293349755"
  ],
  "enabled": true
}

Image policy overview

Image incidents

2 个答案:

答案 0 :(得分:0)

您是否会再次查看?根据{{​​3}}

,它可能受到了GCP事件的影响

答案 1 :(得分:0)

看来事件已触发,但您没有收到通知。

我建议您查看通知渠道[1]文档。

我也与您共享有关“警报行为” [2]的文档,因此您可以阅读该文档以及“管理警报策略” [3]的文档。

[1] https://cloud.google.com/monitoring/support/notification-options

[2] https://cloud.google.com/monitoring/alerts/concepts-indepth

[3] https://cloud.google.com/monitoring/alerts/using-alerting-ui