![](/img/trans.png)
[英]Is there a way to fetch Google Cloud Monitoring Incident metrics via the API?
[英]google cloud monitoring not triggerd incident
指標超過閾值。
但未在 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
}
如果它有效,你會再次審查嗎? 根據https://status.cloud.google.com/ ,它可能受到 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
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.