# Redash

[<mark style="color:blue;">Redash</mark>](https://redash.io/product/) gives you the power to enjoy the comfort of Redash's database query editor with powerful collaboration, create and visualize dashboards and set up alerts to get notified for certain events on your data.

Route detailed events from Redash to the right users in Squadcast.

### How to integrate Redash with Squadcast

#### In Squadcast: Using Redash 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**.

![](/files/ej4AI9zpOyFu5NZJCbwC)

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

![](/files/A2Wld6E54xYc0yoHkzet)

{% hint style="warning" %}
**Important:**

When an alert source turns Active, 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 active if there is a recorded incident via that Alert Source for the Service.
{% endhint %}

#### In Redash: Create a Squadcast Webhook

**(1)** From the Home Page, navigate to **Settings** by clicking on the icon in the top right of the menu bar

![](/files/AEdY9MeBhAJvYdSDhjTj)

**(2)** Select **Alert Destinations**

![](/files/7k0SLZMpeOKmgpzrsgRe)

**(3)** Here, select **New Alert Destination**

![](/files/SGm3mWOrtLvmtg0SmbS1)

**(4)** Select **Webhook**

![](/files/8FktUzbJUh3yuyGcplm8)

**(5)** Here, give the Webhook a **Name** and paste the previously copied Webhook URL from Squadcast under **Url**. Then, click on **Create**

![](/files/xQFmQ8sRrnZNp3BY3lQS)

**(6)** In the next modal, click on **Save** to save this Webhook

![](/files/JvQtDUUDCzl0leDGjLcE)

You will now be able to see this newly created Webhook being listed under **Alert Destinations**

![](/files/nV29KUGq6Mf3Ct0W1Zio)

**(7)** Now, from the navigation bar on the top, select **Alerts**

![](/files/KVGCZBMv8pPTi1Mz62iW)

**(8)** Here, you can either choose to add a **New Alert** or select an existing Alert

![](/files/uuvzWDuR5853jvVW1xUQ)

**(9)** Next:

* In either case, fill in all the necessary details for the **Query Name** and **Trigger When** fields
* Select the option suitable for you from the **When triggered, send notification** dropdown (typically, you should be selecting **Just Once** so that you do not get bombarded with alert notifications)
* In the **Template** dropdown, select **Custom template**
* In the **Subject** section, add the below as is:

```json
[{{ALERT_STATUS}}] {{ALERT_NAME}}
```

* In the **Body** section, add the below as is:

```json
**Query Name**: {{QUERY_NAME}}
### Additional Information
[Alert URL]({{ALERT_URL}})
[Query URL]({{QUERY_URL}})
```

![](/files/NACuvzhdEShU9f50NZLw)

* Then, click on **Create Alert**

**(10)** Once the Alert has been added, select the newly added Alert in the list

![](/files/uuvzWDuR5853jvVW1xUQ)

**(11)** Click on **Add** against **Destinations**

![](/files/Fk60Z8uCmXC0Y8yRzaso)

**(12)** Here, select the newly added Webhook, **Squadcast Webhook**

![](/files/YuRDX10KVouYNkXqh4ke)

**(13)** Ensure that the Webhook has been enabled for it and is being displayed as one of the Destinations for the Alert

![](/files/2G93EC5TQTERNcsKAMB3)

![](/files/iEOFmsPZF0sJkIu2ng2X)

That is it, you are good to go! Everytime an Alert is created in Redash, an incident would be created in Squadcast. When the Alert is resolved in Redash, the corresponding incident in Squadcast will be **automatically resolved**.

*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/redash.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.
