问题描述
指标超出阈值。
但不会在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
}
解决方法
您是否会再次查看?根据{{3}}
,它可能受到了GCP事件的影响 ,看来事件已触发,但您没有收到通知。
我建议您查看通知渠道[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