Dynatrace Integration Guide
Configure Dynatrace to send webhook notifications to Harness AI SRE when problems are detected.
Before you begin
- Harness webhook endpoint: Create a Dynatrace webhook in Harness AI SRE using the Dynatrace webhook template.
- Dynatrace permissions: Access to configure problem notifications and integrations.
- Webhook URL: Copy the webhook URL from your Harness webhook configuration.
- Dynatrace webhook documentation: Go to Problem Notifications to understand notification configuration.
- Webhook integration reference: Go to Webhook Integration for webhook-specific setup.
Create webhook notification in Dynatrace
Navigate to notifications
Open the problem notifications page to add a custom integration:
- In Dynatrace, go to Settings, then Integration, then Problem notifications
- Click Add notification
- Select Custom integration
Configure webhook
- Basic configuration
- Custom payload
- With filters
Configure these fields:
- Display name:
Harness AI SRE - Webhook URL: Your Harness webhook URL
- Notification settings: Configure when to call the webhook
- Call the webhook when new events merge into an existing problem
- Notify the webhook when a problem closes (in addition to the default open-problem notification)
Use a custom payload template:
{
"State": "{State}",
"ProblemID": "{ProblemID}",
"ProblemTitle": "{ProblemTitle}",
"ProblemDetails": "{ProblemDetailsText}",
"ImpactedEntity": "{ImpactedEntity}",
"ProblemSeverity": "{ProblemSeverity}",
"ProblemURL": "{ProblemURL}",
"Tags": "{Tags}"
}
Dynatrace filters which problems trigger the webhook through an alerting profile assigned to the notification, rather than through filter fields on the notification screen itself. Configure the alerting profile to filter by:
- Severity: Availability, Error, Slowdown, Resource, Custom, or Monitoring unavailable
- Tags: Filter by specific tags
- Management zones: Limit to specific zones
- Problem duration and text filters: Further narrow which problems generate notifications
Test the notification
Send a test notification and activate it:
- Click Send test notification
- Verify the test appears in Harness AI SRE
- Click Save to activate the notification
Configure field mapping in Harness
Map Dynatrace problem fields to Harness alert properties.
Basic field mapping example
title: "{{webhook.ProblemTitle}}"
message: |
{{webhook.ProblemDetails}}
Impacted Entity: {{webhook.ImpactedEntity}}
severity: |
webhook.ProblemSeverity == "ERROR" ? "critical" :
webhook.ProblemSeverity == "WARNING" ? "high" :
webhook.ProblemSeverity == "RESOURCE_CONTENTION" ? "medium" : "low"
source: "dynatrace"
link: "{{webhook.ProblemURL}}"
tags:
- "source:dynatrace"
- "problem_id:{{webhook.ProblemID}}"
- "state:{{webhook.State}}"
Advanced filtering with CEL
// Only process open problems
filter: webhook.State == "OPEN"
// Filter by severity
filter: webhook.ProblemSeverity in ["ERROR", "WARNING"]
// Filter by impacted entity type
filter: webhook.ImpactedEntity.contains("SERVICE")
Available Dynatrace fields
| Field | Description | Example |
|---|---|---|
State | Problem state | OPEN, RESOLVED |
ProblemID | Unique problem identifier | -1234567890123456789_1234V2 |
ProblemTitle | Problem summary | Response time degradation |
ProblemDetails | Detailed description | Response time increased by 200% |
ImpactedEntity | Affected entity name | SERVICE-ABC123 |
ProblemSeverity | Severity level | ERROR, WARNING |
ProblemURL | Link to problem in Dynatrace | https://abc123.live.dynatrace.com/... |
Tags | Associated tags | environment:production |
Troubleshooting
Dynatrace webhook is not triggering for Harness AI SRE
Verify the notification is enabled in Dynatrace, check that the problem severity matches your filter criteria, use 'Send test notification' to verify the webhook URL, and review the Dynatrace notification logs.
Dynatrace problems are not creating alerts in Harness AI SRE
Check that the CEL filter expressions allow the problem through, verify required fields (title, message) are mapped, test with a simpler payload first, and review the Harness webhook logs for errors.
Dynatrace is creating duplicate alerts for the same problem in Harness AI SRE
Use the problem ID for deduplication in route alerts, configure Dynatrace to only send 'Open problems' notifications, and add the CEL filter webhook.State == 'OPEN'.
Next steps
- Route alerts: Route Dynatrace problems.
- Use CEL in webhooks: Add advanced filtering.
- Dynatrace webhook template: Review template details.
Related documentation
Dynatrace official documentation
- Problem notifications: Complete guide to problem notification configuration.
- Webhook integration: Webhook-specific setup and payload structure.
- Problem API: Problem object structure and field definitions.
- Placeholder reference: Available placeholder variables for custom payloads.