You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: en/on-call/integration/alert-integration/alert-sources/coralogix.mdx
+18-14Lines changed: 18 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,15 +37,17 @@ These steps require Notification Center admin permissions (create connectors, pr
37
37
<Steps>
38
38
<Steptitle="Create a Generic HTTPS connector">
39
39
40
-
1. Go to **Integrations → Notification Center → Connectors** and click **+ New connector**
41
-
2. Select **Generic HTTPS** as the destination type and name the connector `Flashduty`
42
-
3. Paste the complete Flashduty integration Push URL into **URL** and keep the other fields at their defaults
40
+
1. In the left navigation, hover over **Integrations**, select **Notification Center**, and open the **Connectors** tab
41
+
2. Under **Add new connector**, click **+** next to **Generic HTTPS** and name the connector `Flashduty`
42
+
3. Paste the complete Flashduty integration Push URL into **URL**, keep the other fields at their defaults, and save the connector
43
+
44
+
**Send test notification** on the connector sends an empty JSON object `{}`. Flashduty returns success and creates no alert.
43
45
44
46
</Step>
45
47
46
48
<Steptitle="Create an alert preset">
47
49
48
-
1.Go to**Presets**, open the**Alert** tab, select **Generic HTTPS** as the destination type, and click **+ New preset**
50
+
1.Open the**Presets** tab, switch to**Alerts**, and under **Add new alert preset**click **+** next to **Generic HTTPS**
49
51
2. Paste the following JSON into **Body** and save the preset
50
52
51
53
```json
@@ -72,8 +74,8 @@ Keep `grouping_key` and `status`. Flashduty rejects requests without `grouping_k
72
74
73
75
<Steptitle="Create a router and add an alert rule">
74
76
75
-
1.Go to**Routers**, click **+ Create router**, and set a routing label such as `team`
76
-
2.On the router's **Alerts** tab, add a rule with the condition `true`and select both **Triggered** and **Resolved** as notification triggers
77
+
1.Open the**Routers** tab and create a router with a routing label, for example **Team** set to `payments`. Routing label keys can only be **Environment**, **Team**, or **Service**
78
+
2.After saving, open the router's **Alerts** tab (it shows **Cases** by default) and click **New rule**. **Notify for all trigger types** is on by default, so both trigger and recovery notifications are sent. Leave the condition empty to match all alerts
77
79
3. Select the `Flashduty` connector and the alert preset you created as the destination
78
80
79
81
Use an **Alerts** rule, not a **Cases** rule. Flashduty handles alert grouping and incident management itself, and this integration parses alert notifications only.
@@ -82,16 +84,18 @@ Use an **Alerts** rule, not a **Cases** rule. Flashduty handles alert grouping a
82
84
83
85
<Steptitle="Configure the alert definition">
84
86
85
-
1. Edit or create an alert definition and select**Alerts, Signal-Based**in the notification settings
86
-
2. Add a routing label that matches the router, for example `routing.team: payments`
87
-
3.Turn on **Notify when resolved**. Otherwise, Coralogix does not send recovery notifications
88
-
4. If the alert uses **Group by**, select **Trigger a separate notification for each combination** so that each combination becomes a separate Flashduty alert
87
+
1. Edit or create an alert definition. In the**Response**step, set the notification target to **Alerts** (not **Cases**) and **Notification Method** to **Route via Labels**
88
+
2. Add a routing label that matches the router, for example **Team** set to `payments`, which renders as `routing.team: payments`
89
+
3.Keep **Send a notification when resolved** selected (it is selected by default). Otherwise, Coralogix does not send recovery notifications
90
+
4. If the alert uses **Group by**, select **Separate cases** under **Case settings** so that each combination is notified separately and becomes a separate Flashduty alert. The default **Combined case** puts all combinations into one notification
89
91
90
92
</Step>
91
93
92
94
<Steptitle="Verify the lifecycle">
93
95
94
-
Let the alert actually trigger and confirm that Flashduty receives an active alert. Then let the condition return to normal and confirm that the original alert recovers. **Send test notification** on a preset or connector uses sample data and only verifies that the push URL is reachable.
96
+
Let the alert actually trigger and confirm that Flashduty receives an active alert. Then let the condition return to normal and confirm that the original alert recovers. For a logs threshold alert with a 5-minute window, the trigger notification arrives about 3 minutes after the logs are written, and the recovery notification about 6 minutes after the logs stop.
97
+
98
+
**Send test notification** on the preset renders the preset with sample data and creates an Info alert named `[Test Alert] General Example` in Flashduty. This alert never receives a recovery notification, so close it manually in Flashduty.
95
99
96
100
</Step>
97
101
</Steps>
@@ -101,7 +105,7 @@ Let the alert actually trigger and confirm that Flashduty receives an active ale
101
105
102
106
Flashduty uses `alert.groupingKey` as the Alert Key. Coralogix defines `groupingKey` as the deduplication key in its alert notification schema, and its official Opsgenie and Jira Service Management setups use `groupingKey` to close the matching alert on `Resolved`.
103
107
104
-
With **Trigger a separate notification for each combination**, each Group by combination is notified separately with its own `groupingKey`, so each one is a separate Flashduty alert. With **Trigger a single notification**, one notification covers every matching combination, so Flashduty creates one alert and lists each combination's priority and values in the description, one per line.
108
+
With **Separate cases**, each Group by combination is notified separately with its own `groupingKey`, so each one is a separate Flashduty alert. With **Combined case**, one notification covers every matching combination, so Flashduty creates one alert and lists each combination's priority and values in the description, one per line.
105
109
106
110
Changes to the title, description, priority, or group values do not change the Alert Key.
107
111
@@ -142,8 +146,8 @@ An alert can have at most 50 labels. Requests that exceed this limit are rejecte
142
146
143
147
-**Coralogix reports a delivery failure**: Confirm that the connector URL is the complete push URL and includes `integration_key`
144
148
-**Flashduty returns a parameter error**: Confirm that the preset Body matches the template above, renders valid JSON, and that `grouping_key` and `status` are not empty
145
-
-**Alerts do not recover**: Confirm that **Notify when resolved** is on for the alert definition and that the routing rule includes **Resolved**. For alerts created with Terraform or the API, also confirm that `notifyOn` is not `triggered_only`. Resolving an alert manually in Coralogix does not send a notification
146
-
-**Several combinations merge into one alert**: The alert definition uses **Trigger a single notification**. Switch it to **Trigger a separate notification for each combination**
149
+
-**Alerts do not recover**: Confirm that **Send a notification when resolved** is selected on the alert definition and that the routing rule has **Notify for all trigger types** on or includes **Resolved**. For alerts created with Terraform or the API, also confirm that `notifyOn` is not `triggered_only`. Resolving an alert manually in Coralogix does not send a notification
150
+
-**Several combinations merge into one alert**: The alert definition's **Case settings** is **Combined case**. Switch it to **Separate cases**
147
151
-**Using a legacy outbound webhook**: This integration parses the body rendered by a Notification Center preset. Legacy outbound webhook templates with `$` placeholders do not work. Coralogix recommends Notification Center over legacy webhooks
148
152
149
153
For more information, see the Coralogix documentation: [Alerts as a notification source type](https://coralogix.com/docs/user-guides/alerting/configure-notifications/source-type-schema/), [Generic HTTPS connector](https://coralogix.com/docs/user-guides/notification-center/destination-types/https/connector-config/), and [Routing rules](https://coralogix.com/docs/user-guides/notification-center/routing/define-routing-rule/).
选择 **Trigger a separate notification for each combination** 时,每个 Group by 组合分别发送通知,各自拥有自己的 `groupingKey`,因此在 Flashduty 中是不同的告警。选择 **Trigger a single notification** 时,一次通知汇总所有命中的组合,Flashduty 只生成一条告警,并在描述中逐行列出每个组合的优先级和取值。
108
+
选择 **Separate cases** 时,每个 Group by 组合分别发送通知,各自拥有自己的 `groupingKey`,因此在 Flashduty 中是不同的告警。选择 **Combined case** 时,一次通知汇总所有命中的组合,Flashduty 只生成一条告警,并在描述中逐行列出每个组合的优先级和取值。
-**Flashduty 返回参数错误**:确认预设 Body 与上文一致,渲染结果是有效 JSON,`grouping_key` 和 `status` 非空
145
-
-**告警没有恢复**:确认告警定义打开了**Notify when resolved**,路由规则勾选了**Resolved**;通过 Terraform 或 API 创建的告警还需确认 `notifyOn` 不是 `triggered_only`。在 Coralogix 中手动解决告警不会发送通知
146
-
-**多个分组合并成一条告警**:告警定义选择了**Trigger a single notification**,改为 **Trigger a separate notification for each combination**
149
+
-**告警没有恢复**:确认告警定义勾选了**Send a notification when resolved**,路由规则开启了 **Notify for all trigger types** 或勾选了**Resolved**;通过 Terraform 或 API 创建的告警还需确认 `notifyOn` 不是 `triggered_only`。在 Coralogix 中手动解决告警不会发送通知
0 commit comments