Configure Your First Webhook
Enable external tools to automatically create alerts and incidents in AI SRE.
Webhooks enable external tools to automatically create alerts and incidents in AI SRE.
Before you begin
AI SRE access: A Harness project with AI SRE enabled. Go to the AI SRE onboarding guide to review prerequisites.
External tool access: Permission to configure webhook notifications in the tool that sends events.
Create a webhook
Create the integration
Create the webhook integration in AI SRE:
Click on Integrations
Click on New Integration
Fill in the details for the webhook:
You can select the type, Incident, Alert, Deployment, Build
Select the Template type from the dropdown list
Click on Save
Copy the webhook URL
Once the integration is saved, you will receive a URL that you can configure on the application with which you want the integration to happen. This step varies from tool to tool, and can be checked in the documentation of those applications.
Configure the payload
Next, click on Payload Configuration:
You will get the default values of the payload configuration for the template you have selected
You can wish to add more data from the configuration by clicking on the checkbox and extracting it
Click on Next on the bottom of the page
Map fields
You will be able to view the Mapped Fields which you have selected in the previous step:
You can fill in the values on the mapped fields simply by dragging and dropping from the saved fields pane
Add custom fields (optional)
You can also add any custom fields that you want in your integration payload:
Just simply scroll down and select Add Field
Fill the details of the custom field and hit Save
Drag and drop the values from the saved fields to the custom field placeholder added. You can choose to manually add it or use the Data picker too
Click on Next
Test the integration
You can now test the integration with the cURL command. The POST request contains the endpoint URL which will be used for the integration.
Save the integration
Finally, click on Save on the top right. The integration is ready.
Send events from external tools, like alerts, builds, deployments, and config changes. Categorize them to track and respond effectively.
Next steps
Go to Create Runbooks to automate incident response workflows.
Go to Configure Webhooks for detailed webhook configuration.
Last updated
Was this helpful?