google-cloud-platform - 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
。这些变量意味着什么?
通过文档,但仍然感到困惑。
提前致谢 !
解决方案
推荐阅读
- mongodb - 如何设计 mongo db 模型并使用不同的集合进行查询?
- python - 如何在包含目录的for循环目录中使用tqdm获取进度条?
- java - 淡化 JLabels 的方法?
- elasticsearch - 从 HDFS 到 ES 的数据加载需要很长时间
- python - 将 subprocess.run 与包含引号的参数一起使用
- android - 谷歌地图自定义图块在 Android P 中不起作用
- javascript - 在firebase onCall云函数上使用异步/等待中的try/catch进行错误处理
- c - 当我尝试从我的二进制文件中读取它时,我的数组没有出现在我的文本文件中
- pkcs#11 - 在 BouncyCastle 中导入 PKCS11 公钥
- swift - CGContext.init 返回 nil