腾讯云 CLS 集成指引
在 Flashduty
使用专属集成
展开
1.
2.
3.
4.
使用共享集成
展开
1.
2.
3.
4.
5.
在腾讯云的 CLS
1.
2.
新建
开始新建
3.
名称
填写具体的渠道组名称,渠道类型
选择“自定义接口回调”,回调地址
填写集成的推送地址,请求方法
选择POST4.
确定
保存, 添加
可以添加多个渠道1.
2.
新建
开始新建
3.
告警名称
填写具体的告警名称,日志主题选择具体的日志主题4.
执行语句
填写具体的查询语句,查询时间范围选择时间范围,点击预览可以查看执行的结果,触发条件输入具体的触发条件5.
告警级别
,分为紧急、告警和提醒,根据告警的严重程序选择,执行周期根据需要选择6.
多维分析
,触发告警时可针对原始日志进行额外的检索分析,将结果附加在告警通知中,以辅助定位告警原因。多维分析不会影响告警触发条件。7.
通知渠道组
,可以关联到具体的渠道组1.
2.
3.
{
"uin": "{{escape .UIN}}",
"nickname": "{{escape .Nickname}}",
"region": "{{escape .Region}}",
"alarm": "{{escape .Alarm}}",
"alarm_id": "{{escape .AlarmID}}",
"condition": "{{escape .Condition}}",
"happen_threshold": "{{escape .HappenThreshold}}",
"alert_threshold": "{{escape .AlertThreshold}}",
"topic": "{{escape .Topic}}",
"topic_id": "{{escape .TopicId}}",
"level": "{{escape .Level}}",
"label": {{.Label}},
"start_time": "{{escape .StartTime}}",
"start_time_unix": "{{escape .StartTimeUnix}}",
"notify_time": "{{escape .NotifyTime}}",
"notify_time_unix": "{{escape .NotifyTimeUnix}}",
"notify_type": "{{escape .NotifyType}}",
"consecutive_alert_nums": "{{escape .ConsecutiveAlertNums}}",
"duration": "{{escape .Duration}}",
"trigger_params": "{{escape .TriggerParams}}",
"record_group_id": "{{escape .RecordGroupId}}",
"detail_url": "{{escape .DetailUrl}}",
"query_url": "{{escape .QueryUrl}}",
"message": {{.Message}},
"query_result": {{.QueryResult}},
"query_log": {{.QueryLog}},
"analysis_result": {{.AnalysisResult}}
}
状态对照
腾讯云CLS监控告警级别到 Flashduty 映射关系:
腾讯云 CLS 监控 | Flashduty | 状态 |
---|---|---|
Info | Info | 提醒 |
Warn | Warning | 警告 |
Critical | Critical | 紧急 |
修改于 2024-05-11 09:14:31