Skip to main content

Dynatrace Integration Guide

Last updated on

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

Open the problem notifications page to add a custom integration:

  1. In Dynatrace, go to Settings, then Integration, then Problem notifications
  2. Click Add notification
  3. Select Custom integration

Configure webhook

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)

Test the notification

Send a test notification and activate it:

  1. Click Send test notification
  2. Verify the test appears in Harness AI SRE
  3. 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

FieldDescriptionExample
StateProblem stateOPEN, RESOLVED
ProblemIDUnique problem identifier-1234567890123456789_1234V2
ProblemTitleProblem summaryResponse time degradation
ProblemDetailsDetailed descriptionResponse time increased by 200%
ImpactedEntityAffected entity nameSERVICE-ABC123
ProblemSeveritySeverity levelERROR, WARNING
ProblemURLLink to problem in Dynatracehttps://abc123.live.dynatrace.com/...
TagsAssociated tagsenvironment: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


Dynatrace official documentation