Alerts in Coralogix can trigger new alerts and can 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 will trigger a new alert in the corresponding Opsgenie service.
If “Notify When Resolved” is set for the Coralogix alert, once the conditions have returned to their designated normal range, a Coralogix Resolve event will be sent to the Opsgenie service and change the alert status toClosed.
Configuration in Opsgenie:
Open the main page of your Opsgenie account. Choose “Teams” tab (a team must be defined)
From your Opsgenie Settings tab, select Integrations. Select your defined “Team”, and click on “Integrations” on the left pane
Click on “add integration” and in the “Integration List”, search for “Coralogix”.
When you hover your cursor it will show an “Add” option. Click on “Add”.
You will see the integration endpoint. Copy it to be used in the Coralogix webhook definition in the next step.
Note that the priority setting under the Opsgenie integration (figure 6.1) is not a derivative of the Coralogix alert severity. In other words, it cannot be set dynamically by the alert severity you are choosing in the Alerts itself in Coralogix (figure 6.2).
If you want to have different priorities for your Opsgenie alerts you should set the right P (P1-P5) per integration and then create for each integration its own webhook integration in Coralogix. For instance, one integration to have for P1 and use it with one Coralogix to Opsgenie webhook and place that webhook with your critical Coralogix alerts and have different integration for priority P3 and use it with a different Coralogix to Opsgenie webhook and then choose it for Coralogix alerts you set with Warning severity. Figure 6.1
Configuration in Coralogix
Go to Data Flow -> Webhooks. Click the ‘+ Add New’ button on the right-hand side, choose WebHook (OpsGenie), and fill your destination URL with the one you copied from OpsGenie.
Click save and then click the ‘Test Configuration’ button. You should get a success message. You should also see a test message when you log into Opsgenie.
In case you created more than one webhook, you can choose the relevant webhook in the alert creation/edit page under Recipients.