Airbrake integration
You can use an APEX AIOps Incident Management custom integration to ingest events from Airbrake.
Before you begin
Before you set up your Airbrake integration:
Make sure you are signed in to your Incident Management instance.
Make sure you are signed in to Airbrake.
Create a custom integration in Incident Management
In Incident Management, navigate to Integrations > Inbound Integrations > Create Your Own Integration.
If necessary, click Add Integration to display the full list of integrations.
Click Add New Integration.
Under APEX AIOps Incident Management Endpoint, enter a unique name for your new integration (required).
Note
The name of the integration can be anything you choose. Incident Management will automatically generate an API endpoint URL independent of what you enter for this field.
Under API Description, enter a description for the integration (optional).
Under Data Type, select Events.
Click Save.
Keep the web page for this integration open in your browser while you complete the following steps in Airbrake.
Create a webhook in Airbrake
Open Airbrake. At the top of the page, click Integrations.
Within the left hand navigation, click Webhook.
Construct the endpoint URL:
In the URL field, paste the endpoint URL for your Incident Management integration.
The endpoint URL is provided for you in Incident Management on the page for your custom integration, under Configuration Information > APEX AIOps Incident Management Endpoint.
Modify the endpoint URL by adding your Incident Management API key (
apiKey) and the name of your Incident Management integration (integrationName) in the following format:https://integrationName:apiKey@api.moogsoft.ai/express/v1/integrations/custom/32z178bf1f6a8b624c4fe019/integrationName
Caution
The name of your Incident Management integration is case-sensitive. If your integration is named "Airbrake", then "airbrake" will not be recognized in the modified endpoint URL.
Example:
If the endpoint URL is
https://api.moogsoft.ai/express/v1/integrations/custom/32z178bf1f6a8b624c4fe019/, then given the following values:apiKey= 1234567-1234-abcd-12345678integrationName= Airbrake
...the modified endpoint URL would be:
https://Airbrake:1234567-1234-abcd-12345678@api.moogsoft.ai/express/v1/integrations/custom/32z178bf1f6a8b624c4fe019/Airbrake
Click Save.
Click Test integration. This will send a test payload to your Incident Management integration.
Configure the custom integration in Incident Management
Go to your Incident Management instance.
Open the page for your custom integration by going to Integrations > Inbound Integrations > Create Your Own Integration > your-integration-name.
In the Map Your Data section, you can view cached payloads of incoming events sent from Airbrake. Confirm that the test payload you sent is there.
Map your payload fields to the corresponding Incident Management fields. An example mapping is provided for you below as a reference, but you should tailor the mapping according to your business needs.
For a complete list of mapping types, save options, and instructions on how to use them, read Use mapping types in custom integrations.
Table 1. Example mappingAirbrake fields
Incident Management field
error.last_notice.request_urlsourceerror.error_messagedescriptionerror.error_classcheckerror.severityseverityClick Map Values and map the severity values according to the Severity Mapping table below.
error.project.nameserviceerror.error_classclasserror.line_numbertags.airbrake line_numbererror.idtags.airbrake IDerror.filetags.airbrake fileerror.project.idtags.airbrake project_iderror.last_notice.request_urltags.airbrake request_urlerror.last_notice.request_methodtags.airbrake request_methoderror.last_notice.backtracetags.airbrake backtraceerror.environmenttags.airbrake environmenterror.first_occurred_attags.airbrake first_occurred_aterror.last_occurred.attags.airbrake last_occurred_aterror.times_occurredtags.airbrake times_occurredairbrake_error_urltags.airbrake error_urlTable 2. Severity mappingAirbrake severity field
Incident Management severity field
debugUnknown
infoUnknown
noticeWarning
alertMajor
emergencyCritical
Go to the top of the page and click Save.