Skip to main content
Sync Tencent Cloud Log Service (CLS) monitoring alerts to Flashduty via webhook for automated alert noise reduction.

In Flashduty


You can obtain an integration push URL through either of these two methods:

Using Private Integration

Choose this simpler option when you don’t need to route alerts to different channels.

Using Shared Integration

Choose this option when you need to route alerts to different channels based on the alert payload information.

In Tencent Cloud CLS


Step 1: Configure Notification Channel Group
  1. Log in to your Tencent Cloud Console, select CLS service, and go to Monitoring Alerts - Notification Channel Groups
  2. Click Create to start
drawing
  1. As shown, enter a specific channel group name in Name, select “Custom API Callback” for Channel Type, fill in the integration push URL in Callback URL, and select POST for Request Method
  2. Click OK to save, Add to add multiple channels
Step 2: Configure Alert Policy
  1. Log in to your Tencent Cloud Console, select CLS service, and go to Monitoring Alerts - Alert Policies
  2. Click Create to start
drawing
  1. As shown, enter a specific alert name in Alert Name, select the specific log topic
  2. Fill in specific query statements in Execution Statement, select time range for query period, click Preview to check execution results, enter specific trigger conditions
  3. For Alert Level, choose between Critical, Warning, and Info based on alert severity, select execution cycle as needed
  4. Multi-dimensional Analysis allows additional log analysis when alerts trigger, attaching results to notifications to help identify alert causes. This analysis doesn’t affect alert trigger conditions.
  5. For alert notifications, Notification Channel Group can be linked to specific channel groups
Step 3: Configure Custom Callback
  1. After linking the channel group, you can see callback content configuration
  2. Request headers can be added as needed
  3. Request content format reference:
{
    "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}}
}

Status Mapping


Tencent Cloud CLS monitoring alert level mapping to Flashduty:
Tencent Cloud CLSFlashdutyStatus
InfoInfoInfo
WarnWarningWarning
CriticalCriticalCritical