Alert webhook with VictorOps
Coralogix allows for the easy creation of webhooks integrations with other services like VictorOps.
Configuration in VictorOps
In order to integrate with VictorOps, the first step is to make sure you configured the endpoint URL. If you don't have one yet, go to your VictorOps account and select Settings, then Routing keys to generate a routing key:
Copy the routing key, then select Integration, then REST Generic:
Finally, use the routing key to complete the URL:
Configuration in Coralogix
To define your webhook, select Data Flow, then Webhooks. Select the '+ Add New' button on the right-hand side, select WebHook from the dropdown list, and fill in your destination URL. Since the field message_type is mandatory, select "Edit body" to add it:
message_type optional VictorOps values are:
CRITICAL
WARNING
ACKNOWLEDGMENT
INFO
RECOVERY
This is the payload sent from a Coralogix custom webhook to VictorOps. You can edit the other payload fields:
{
"message_type": "CRITICAL",
"entity_id": "$ALERT_ID",
"entity_display_name": "$ALERT_NAME",
"alert_severity": "$EVENT_SEVERITY",
"state_message": "$LOG_TEXT",
"description": "$ALERT_DESCRIPTION",
"alert_action": "$ALERT_ACTION",
"alert_url": "$ALERT_URL",
"log_url": "$LOG_URL",
"monitoring_tool": "Coralogix",
"team": "$TEAM_NAME",
"application": "$APPLICATION_NAME",
"subsystem": "$SUBSYSTEM_NAME",
"ipAddress": "$IP_ADDRESS",
"timestamp": "$EVENT_TIMESTAMP",
"hitCount": "$HIT_COUNT"
}
Now you should be able to generate alert notifications into VictorOps.
Next steps
Send alert notifications to Microsoft Teams channels with Microsoft Teams outbound webhooks.