Skip to main content

Opsgenie outbound webhooks

Enhance your observability workflows by sending real-time event notifications and log data to Opsgenie using this outbound webhook.

How it works​

Alerts in Coralogix can trigger new alerts and resolve alerts in Opsgenie depending on the settings chosen for each alert.

  • When an alert in Coralogix has an Opsgenie webhook and its conditions are met, an event is sent to your service in Opsgenie.

  • Different events from Coralogix trigger a new alert in the corresponding Opsgenie service.

  • If "Notify When Resolved" is set for the Coralogix alert, after the conditions return to their designated normal range, Coralogix sends a resolve event to the Opsgenie service and the alert status changes to Closed.

Access the Opsgenie webhook URL​

Access your webhook URL in your Opsgenie account.

1.

From the Teams tab, select a team.

Opsgenie Teams tab with a team selected

2.

From the Settings tab, select Integrations in the left-hand panel.

Opsgenie team Settings with Integrations in the left panel

3.

Select Add Integration. Select Coralogix from within the Integration list.

Coralogix in the Opsgenie integration list

4.

When you hover over Coralogix, an Add option appears. Select Add.

Add option on the Coralogix integration in Opsgenie

5.

Select CREATE ALERT.

Opsgenie Coralogix integration with Create Alert

6.

Select an alert priority (P1 - P5). Select Save.

Opsgenie alert priority selection

Notes:

  • The Opsgenie webhook produces alerts only for the selected priority, regardless of the severity of the associated Coralogix alert.
  • Create a new webhook in your Opsgenie dashboard if you desire alerts with other priorities.
  • To make the priority dynamic according to the alert severity in the alert definition, set it as {{_payload.priority}}. The mapping is: Critical - P1, Error - P2, Warning - P3, Info - P5
7.

[Optional] The Opsgenie webhook does not include several fields by default, which can be added in the integration settings within Opsgenie.

Opsgenie integration settings for adding extra properties

Add any of the following fields to be included in your alerts under Add extra property and select Save.

Field NameProperty
alert_value{{_payload.alert_value}}
notification_grouped_by{{_payload.notification_grouped_by}}
name{{name}}
alert_threshold{{_payload.alert_threshold}}
meta_labels{{_payload.metaLabels}}
coralogix_team_name{{_payload.coralogix_team_name}}
group_by_field_1{{_payload.group_by_field_1}}
group_by_field_2{{_payload.group_by_field_2}}
group_by_value_1{{_payload.group_by_value_1}}
group_by_value_2{{_payload.group_by_value_2}}
Alias{{_payload.alias}}
alert_url{{_payload.alert_url}}
logs_url{{_payload.related_logs_url}}
edit_alert_url{{_payload.edit_alert_url}}
alert_unique_identifier{{_payload.alert_unique_identifier}}
company_id{{_payload.company_id}}

The group_by_field_<#> and group_by_value_<#> fields are dynamic. They correspond to the specific splits defined in the alert notification settings. If your alert is not configured to trigger a message for each permutation, these fields are not present. These values are populated based on the selected group-by criteria when enabled.

The notification_grouped_by field contains a JSON representation of all the selected values used for splitting notifications.

8.

Copy the integration URL displayed, to be used in your webhook setup.

Opsgenie integration URL to copy

9.

Select Save Integration.

Create an Opsgenie webhook​

Create an Opsgenie webhook in your Coralogix dashboard.

1.

From the Coralogix toolbar, select Data Flow, then Extensions.

2.

In the Outgoing Webhooks section, select OPSGENIE WEBHOOK.

Opsgenie webhook in the Coralogix Outgoing Webhooks section From the Coralogix toolbar, select Data Flow, then Extensions.

3.

Select + ADD NEW.

Opsgenie webhook page with Add New

4.

Enter the following details for your webhook:

  • Webhook Name. Enter a name that helps you find this webhook when you attach it to an alert.
  • URL. Paste the Opsgenie webhook URL.
5.

Select TEST CONFIG.

The system creates a test alert in Opsgenie using the webhook URL. If the test alert is received successfully, a confirmation message is displayed.

6.

After the configuration is confirmed, configure your alert notifications.

Best practices​

  • Create a new integration in your Opsgenie dashboard for every desired priority (P1-P5).

  • Create the same number of webhooks in your Coralogix dashboard, each with a different URL.

Additional resources​

Next steps​

Integrate Coralogix alerts with VictorOps in Alert webhook with VictorOps.

Last updated on