# Dynatrace

Follow the steps below to configure Dynatrace to send alerts into Squadcast.

Squadcast will then process this information to create incidents for this service according to your preferences.

### Using Dynatrace as an Alert Source

1. Navigate to **Services** -> **Service Overview** -> select or search for your Service. Expand the accordion -> In the Alert Sources section, click **Add**.

![](https://1574591692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8TaWz01jmUJl58p4ZVel%2Fuploads%2Fgit-blob-4fbd74e7ca0b30173c47a1d58ed6a0804a0465aa%2FAlert_Sources.png?alt=media\&token=aaca6610-9d18-4dd4-9cf5-320042f326f1)

2\. Select **Dynatrace**. Copy the displayed **Webhook URL** to [configure](#create-a-squadcast-webhook-in-dynatrace-dashboard) it within **Dynatrace**. Finish by clicking **Add Alert Source** -> **Done**.

![](https://1574591692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8TaWz01jmUJl58p4ZVel%2Fuploads%2Fgit-blob-ad53749c5717ed5d4a89f2d4e2e6e7c934a6b892%2FDynatrace.png?alt=media)

{% hint style="warning" %} <mark style="color:orange;">**Important**</mark>**:**

When an alert source turns <mark style="color:green;">Active</mark>, it’ll show up under Configured Alert Sources. You can either generate a test alert from the integration or wait for a real-time alert to be generated by the Alert Source.\
\
An Alert Source is <mark style="color:green;">active</mark> if there is a recorded incident via that Alert Source for the Service.
{% endhint %}

### Create a Squadcast Webhook in Dynatrace Dashboard

**(1)** Log in to your **Dynatrace** web console, then navigate to Dynatrace > Settings > Integration > Problem notifications

**(2)** Click **Set up notifications** and select **Custom Integration**, as shown below.

![](https://1574591692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8TaWz01jmUJl58p4ZVel%2Fuploads%2Fgit-blob-d12c4a18e1a8b094d41200853231a30e4f203969%2Fdynatrace_2.png?alt=media)

**(3)** Enter a **Name** and the **Webhook URL** that was copied from the Squadcast Services page to notify users when an issue occurs with the Webhook notification.

![](https://1574591692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8TaWz01jmUJl58p4ZVel%2Fuploads%2Fgit-blob-0009b8a76ced954990b34a84206c1762ec7f2f32%2Fdynatrace_3.png?alt=media)

**(4)** Next, to create a payload, that is to be sent to Squadcast via the Squadcast webhook, insert the following JSON payload in the **Custom payload** section as shown below.

```json
{
  "State": "{State}",
  "ProblemID": "{ProblemID}",
  "PID": "{PID}",
  "ProblemTitle": "{ProblemTitle}",
  "ImpactedEntity": "{ImpactedEntity}",
  "ImpactedEntities": "{ImpactedEntities}",
  "ProblemDetailsText": "{ProblemDetailsText}",
  "ProblemSeverity": "{ProblemSeverity}",
  "ProblemURL": "{ProblemURL}"
}
```

More information about the JSON fields can be found in the list of **Available placeholders**

![](https://1574591692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8TaWz01jmUJl58p4ZVel%2Fuploads%2Fgit-blob-c8a48d12b86cc243347301d1c95351d495194720%2Fdynatrace_4.png?alt=media)

**(5)** After configuring the payload, select your **Alerting profile**, click on **Send test notification** to send a test notification to the webhook URL to confirm if the integration works properly, and then click on **Save** to save the integration.

![](https://1574591692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8TaWz01jmUJl58p4ZVel%2Fuploads%2Fgit-blob-e549baec2aa02e6f5d3f2bd7fc3596b2c5ff6566%2Fdynatrace_5.png?alt=media)

Now whenever an alert notification is triggered in Dynatrace, an incident will automatically be created in Squadcast. Also when an alert is resolved in Dynatrace, the corresponding incident gets **auto-resolved** in Squadcast.

*Have any questions?* [*Ask the community*](https://community.squadcast.com/view/home)*.*


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://support.squadcast.com/integrations/alert-source-integrations-native/dynatrace.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
