繁体   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