备注:目前批量接入,需要找CLB产品开启白名单,才可以看到入口。
建议:按照业务实际情况区分不同的日志主题,比如http层,缓存层,数据层或者按照业务维度,金融业务,主站业务,订单业务等,因CLS也同时是一个管道,对应不同的日志主题可以选择不同的路径,到COS,CKAFKA,SCF等等进一步处理,归档数据。
参考链接:https://cloud.tencent.com/document/product/214/41379
具体语法请参考:https://cloud.tencent.com/document/product/614/47044
request:"HEAD /aaa/ HTTP/1.1" AND request_time:>0.005
status:[400 TO 500} AND upstream_addr:"10.0.1.12:80"
分析简介请参考:https://cloud.tencent.com/document/product/614/44061
* | SELECT HISTOGRAM(CAST(__TIMESTAMP__ AS TIMESTAMP), INTERVAL 1 MINUTE) AS dt,AVG(request_time) AS "请求处理平均时长/clb实例", server_addr GROUP BY dt, server_addr order by dt
可以清晰细节的判断各个阶段的处理时长,最快定位问题。
* | SELECT HISTOGRAM(CAST(__TIMESTAMP__ AS TIMESTAMP), INTERVAL 1 MINUTE) AS dt, COUNT(1) AS "每分钟到rs的请求数", upstream_addr GROUP BY dt, upstream_addr order by dt
* | SELECT HISTOGRAM(CAST(__TIMESTAMP__ AS TIMESTAMP), INTERVAL 1 MINUTE) AS dt, count(1), status GROUP BY dt, status order by dt
选择对应图标,点击"添加到仪表盘"即可:
告警简介参考:https://cloud.tencent.com/document/product/614/51741
基于检索分析灵活添加告警规则,根据告警规则添加告警策略,告警通知到微信,企业微信,webhook等,实时接收线上LB的健康情况。
本文系转载,前往查看
如有侵权,请联系 cloudcommunity@tencent.com 删除。
本文系转载,前往查看
如有侵权,请联系 cloudcommunity@tencent.com 删除。