【发布时间】:2022-11-16 14:22:00
【问题描述】:
我创建了一个默认警报策略,当外部 HTTP(S) 负载均衡器服务的请求数超过特定阈值时通知用户。
在 Google 云控制台中,我从主导航菜单中选择监控>警报.
在警报页面上,我点击了创建策略.
在里面选择一个指标菜单中,我选择的外部 HTTP(S) 负载平衡器的资源类型是 https_lb_rule,监控我选择的负载平衡器服务的请求数的指标是 https/request_count。
对于Threshold类型的触发条件,我输入了以下信息:
警报触发器:任何时间序列违反
阈值位置:高于阈值
阈值:1
现在不太明白把阈值设置为1是什么意思。我错误地假设输入 1 的值意味着如果负载均衡器服务于多个请求,则会触发警报。
我收到的事件电子邮件通知如下:
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 阈值或在此上下文中的任何其他值的重要性/含义是什么。
【问题讨论】:
标签: google-cloud-platform google-cloud-monitoring google-cloud-load-balancer