首页 > 解决方案 > Google Cloud Platform - 未触发警报

问题描述

我试图在谷歌云平台中设置监控,如果我在 1 小时内获得一种类型的日志超过 50 次,它应该会触发一封电子邮件。

我尝试设置的警报配置:

"conditionThreshold": {
        "aggregations": [
          {
            "alignmentPeriod": "3600s", // sum the count of logs for one hour 
            "crossSeriesReducer": "REDUCE_SUM",
            "perSeriesAligner": "ALIGN_SUM"
          }
        ],
        "comparison": "COMPARISON_GT",
        "duration": "3600s", // If in an hour we get 50 calls of same type then trigger
        "filter": "my metric type and revision type  check[enter image description here][1]",
        "thresholdValue": 50, // number of calls after which the alert has to trigger
        "trigger": {
          "count": 1
        }
      } 

有时它会触发,有时不会,我无法理解变量阈值、周期、对齐,尤其是 UI 中的那个条件部分above 50 for 1 hour 。这些变量意味着什么?

通过文档,但仍然感到困惑。

提前致谢 !

标签: google-cloud-platformmonitoringalerts

解决方案


推荐阅读