簡體   English   中英

雲監控創建告警策略時閾值字段是什么意思?

[英]What is the meaning of the Threshold value field when creating an Alerting policy in Cloud Monitoring?

我創建了一個默認警報策略,當外部 HTTP(S) 負載均衡器服務的請求數超過特定閾值時通知用戶。

在 Google 雲控制台中,我從主導航菜單中選擇了Monitoring > Alerting

在 Alerting 頁面上,我單擊了Create policy

Select a metric菜單中,我選擇的外部 HTTP(S) 負載均衡器的資源類型是https_lb_rule ,用於監視我選擇的負載均衡器服務的請求數的指標是https/request_count

對於Threshold類型的觸發條件,我輸入了以下信息:
警報觸發器:任何時間序列違反
閾值 position:高於閾值
閾值:1

現在我不太明白將閾值設置為1是什么意思。 我錯誤地假設輸入值1意味着如果負載均衡器服務於多個請求,則會觸發警報。

我收到的事件通知 email 說明如下:

Request count for l7-http-gfev3 Google Cloud HTTP/S Load Balancing Rule labels {project_id=l7-http-gfev3, region=global, url_map_name=web-map-http, forwarding_rule_name=web-frontend-service, target_proxy_name=web-map-http-target-proxy, matched_url_path_rule=UNMATCHED, backend_target_name=web-backend-service} with metric labels {cache_result=MISS, client_country=United Kingdom, protocol=HTTP/1.1, proxy_continent=Europe, response_code=404, response_code_class=400} is above the threshold of 1.000 with a value of 5.000. 消息的結尾部分表示: is above the threshold of 1.000 with a value of 5.000

在另一個通知中,消息的結尾部分顯示: is above the threshold of 1.000 with a value of 35.000.

那么,我應該如何解釋此消息以及閾值1或在此上下文中的任何其他值的意義/含義是什么。

正如您所選擇的:

Alert trigger: Any time series violates 
Threshold position: Above threshold
Threshold value:1  

這里,閾值表示截止值。 如果您 select above the threshold值,則如果有任何請求超過 1,則會生成警報。 如果您 select below the threshold值,則如果請求小於 1,則會生成警報。 任何時候,如果系列違反閾值,就會觸發警報。

根據您的 email,消息的結尾部分表示:高於 1.000 的閾值,值為 5.000 ,這意味着請求計數大於 1,並且 email 生成時的請求計數為 5。

在另一個通知中,消息的結尾部分表示:高於 1.000 的閾值,同樣高於 35.000 的值,請求計數大於 1,並且在生成 email 時的計數請求計數為 35。

請參閱此鏈接以了解基於指標的警報策略的行為

編輯 1:

在此處輸入圖像描述

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM