Configure Webhook Integration
Configure External Systems to Send Webhooks
After creating a webhook integration in Harness AI SRE, configure your external monitoring tool, CI/CD system, or cloud platform to send webhook notifications to the unique webhook URL.
Overview
This section provides step-by-step configuration guides for popular external systems. Each guide walks you through:
- Locating webhook settings in the external platform
- Configuring the webhook URL provided by Harness
- Selecting events and triggers to send
- Testing the integration to verify data flow
- Troubleshooting common configuration issues
How to Use These Guides
Step 1: Create Webhook in Harness
Before configuring the external system:
- Navigate to Integrations → New Integration in Harness AI SRE
- Select the appropriate webhook template for your tool
- Copy the webhook URL displayed after saving
Go to Ingest Alerts for detailed webhook creation steps.
Step 2: Configure External System
Use the relevant guide below to configure your external tool to send webhooks to Harness. Each guide provides:
- Navigation paths to webhook settings in the external platform
- Required configuration (URL, headers, authentication)
- Event selection guidance
- Payload examples showing what data is sent
- Test procedures to verify the integration
Step 3: Verify Alert Creation
After configuration:
- Trigger a test alert in the external system
- Check that the alert appears in Harness AI SRE
- Verify field mapping is correct
- Review the alert timeline for any errors
Available Integration Guides
Monitoring and Observability
Detailed external setup guides available for these monitoring platforms:
- Datadog - Configure Datadog monitors to send alerts via webhook
- PagerDuty - Set up PagerDuty webhook extensions and V3 webhooks
- Prometheus (AlertManager) - Configure AlertManager webhook receivers
- Grafana - Set up Grafana Unified Alerting contact points
- New Relic - Configure New Relic Applied Intelligence workflows
- OpsGenie - Set up OpsGenie outgoing webhook integrations
- Splunk - Configure Splunk alert actions to send webhooks
Additional Monitoring Tools
These tools have webhook templates in Harness but use standard webhook configuration (refer to their official documentation):
- Dynatrace - Go to Dynatrace webhook template
- Sentry - Go to Sentry webhook template
- Lacework - Go to Lacework webhook template
- BigPanda - Go to BigPanda webhook template
- AlertSite - Go to AlertSite webhook template
- Grafana Incident - Go to Grafana Incident webhook template
- Harness SLO - Go to Harness SLO webhook template
Cloud Platforms
- AWS CloudWatch - Configure CloudWatch alarms with SNS and HTTPS subscriptions
CI/CD and Development
Detailed external setup guides available for:
- GitHub - Set up GitHub repository and organization webhooks
- GitLab - Configure GitLab project and group webhooks
Additional CI/CD Tools
These tools have webhook templates in Harness but use standard webhook configuration:
- Bitbucket - Go to Bitbucket webhook template
- Travis CI - Go to Travis CI webhook template
- Octopus Deploy - Go to Octopus Deploy webhook template
ITSM and Ticketing
These tools have webhook templates in Harness but use standard webhook configuration:
- Jira - Go to Jira webhook template
- ServiceNow - Go to ServiceNow webhook template
For bidirectional synchronization with Jira and ServiceNow, also configure:
- Jira runbook integration for creating and updating issues
- ServiceNow runbook integration for posting work notes and updates
Common Configuration Patterns
Basic Webhook Configuration
Most tools follow this pattern:
- Webhook URL: Paste the Harness webhook URL
- HTTP Method: POST (default for most tools)
- Content-Type:
application/json - Events: Select relevant events (alerts, incidents, deployments)
- Authentication: Usually none required (secret in URL path)
Advanced Configuration
Some platforms support:
- Custom headers: Add authentication tokens or metadata
- Payload templates: Customize JSON structure before sending
- Conditional triggers: Only send webhooks for specific conditions
- Batch delivery: Group multiple events in a single webhook
- Retry logic: Automatic retry on delivery failure
Testing Webhooks
Always test webhook configuration:
- Trigger test event in external system
- Check delivery logs in external platform (if available)
- Verify alert creation in Harness AI SRE
- Review field mapping to ensure correct data extraction
- Check error logs if webhook delivery fails
Troubleshooting Common Issues
Webhook URL Not Working
Symptom: External system reports delivery failure or timeout
Solutions:
- Verify the webhook URL is exactly as provided by Harness (no extra spaces or characters)
- Check network connectivity from the external system to Harness
- Ensure no firewall rules block outbound HTTPS traffic
- Verify the webhook is enabled in Harness (not in quiet mode)
Alerts Not Appearing in Harness
Symptom: External system shows successful delivery, but no alerts in Harness
Solutions:
- Check that field mapping extracts required fields (title, description)
- Verify payload structure matches the webhook template expectations
- Review route alerts to ensure alerts are not being filtered out
- Check that the correct webhook template was selected
- Look for parsing errors in the webhook event log
Incorrect Field Mapping
Symptom: Alerts appear but with missing or incorrect information
Solutions:
- Review the webhook payload structure in the external system
- Update JSONPath expressions in saved fields to match payload structure
- Adjust Mustache templates in mapped fields
- Test with sample payloads using the webhook test feature
- Refer to the external system's webhook documentation for field names
Duplicate Alerts
Symptom: Same alert appears multiple times in Harness
Solutions:
- Check that only one webhook integration is configured for the external system
- Review route alerts for duplicate routing
- Verify the external system is not sending duplicate webhook POSTs
- Consider using alert deduplication rules based on unique identifiers
Authentication Errors
Symptom: External system requires authentication that is not configured
Solutions:
- Most Harness webhooks do not require authentication (secret is in URL)
- If the external system requires a response to a challenge, contact Harness support
- For SNS subscription confirmation (AWS CloudWatch), follow the specific guide
- Check that webhook URL includes the secret key portion
Best Practices
Configuration Management
- Document webhook URLs: Store webhook URLs securely (they contain secrets)
- Use descriptive names: Name webhooks clearly in both systems
- Version control: Document webhook configurations in runbooks
- Test thoroughly: Always test before relying on webhooks in production
Security
- Protect webhook URLs: Treat webhook URLs as secrets (they contain authentication)
- Rotate secrets: If a webhook URL is compromised, delete and recreate the integration
- Limit access: Only authorized users should access webhook configuration
- Use HTTPS: All Harness webhooks use HTTPS by default
Maintenance
- Monitor webhook health: Check delivery success rates in external systems
- Update on platform changes: External system updates may change payload structure
- Clean up unused webhooks: Delete integrations that are no longer needed
- Document changes: Record any modifications to webhook configuration
Performance
- Batch when possible: Some tools support batching multiple events
- Set appropriate retry policies: Configure external system retry behavior
- Monitor volume: High-volume webhooks may require rate limiting
- Use filters: Only send relevant events to reduce noise
Next Steps
Get Started
- Go to Ingest Alerts to create a webhook integration in Harness.
- Go to Webhook Templates to browse available templates.
- Go to Use CEL in Webhooks to filter webhook payloads.
Advanced Configuration
- Go to Route Alerts to route and process webhook-generated alerts.
- Go to Create a Runbook to automate responses to webhook alerts.
- Go to AI SRE Best Practices for webhook integration optimization.
Get Help
If you encounter issues not covered in these guides:
- Check the external system's official webhook documentation
- Review the webhook event log in Harness for detailed error messages
- Contact Harness support with webhook delivery logs from both systems