> For the complete documentation index, see [llms.txt](https://docs.groundcover.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.groundcover.com/automate/connected-apps/incident.io-1.md).

# Rootly

{% hint style="info" %}
This capability is only available to BYOC deployments. Check out our [pricing page](https://www.groundcover.com/pricing) for more information about subscription plans and the available deployment modes.
{% endhint %}

### **Create an Alert Source in Rootly**

1. **Generate an Alerts configuration for groundcover**\
   Log in to your Rootly account. Go to "Alerts" -> "Sources"

<figure><img src="https://2771001740-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUHgqKYgCiRKdOpWQdi52%2Fuploads%2FN6JgSc2ckkcU17HLoSc5%2Fimage.png?alt=media&amp;token=c9db5bde-63c3-42ee-8261-559b9c7f3c7b" alt=""><figcaption></figcaption></figure>

2. Click on + "New Source" and search for Generic Webhook.<br>

   <figure><img src="https://2771001740-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUHgqKYgCiRKdOpWQdi52%2Fuploads%2F92dgtJIEduJ1xPH1TBti%2Fimage.png?alt=media&amp;token=e6144ef8-90d0-4d1b-aaa9-8c8be31343c4" alt=""><figcaption></figcaption></figure>
3. Add an 'Alert Source Name', e.g. 'groundcover' and optionally also Owning Teams, then click Add Source.<br>

   <figure><img src="https://2771001740-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUHgqKYgCiRKdOpWQdi52%2Fuploads%2Fa1o07IEAIVLK6NUtc0eQ%2Fimage.png?alt=media&amp;token=34fe5885-0600-4a04-9e05-644d4a175b48" alt="" width="452"><figcaption></figcaption></figure>
4. Choose your alert routing method.
5. Copy the Authorization Header Credential&#x73;**.** Click Continue.<br>

   <figure><img src="https://2771001740-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUHgqKYgCiRKdOpWQdi52%2Fuploads%2FaAhy6Lzop7dLl02GzmR4%2Fimage.png?alt=media&amp;token=643cdf4e-c94f-48e3-8101-849bf786bc49" alt="" width="375"><figcaption></figcaption></figure>
6. (Optional) You can now send a test notification to see the payload that will be received from notifications.<br>

   <figure><img src="https://2771001740-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUHgqKYgCiRKdOpWQdi52%2Fuploads%2FGvwgbYi9BJbOkJ6mfPzR%2Fimage.png?alt=media&amp;token=cadbe24b-64e8-4256-8168-3a25587ca73f" alt="" width="375"><figcaption></figcaption></figure>
7. Click Continue.
8. (Optional) Define severity mapping to Alert Urgency using `$.metadata.severity`<br>

   <figure><img src="https://2771001740-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUHgqKYgCiRKdOpWQdi52%2Fuploads%2FYj4f8hKjzXVUXxvWkIM9%2Fimage.png?alt=media&amp;token=2f6659fa-ed27-4805-8f4a-cc29b08a116b" alt="" width="563"><figcaption></figcaption></figure>
9. **Important-**
   1. Set the Unique Identifier: `$.deduplication_key`
   2. (Optional) Toggle on 'Combine duplicate alerts into one alert'
   3. Toggle On 'Auto-Resolve' and set:
      1. Field location: `$.status`
      2. Field value: `resolved`

         <figure><img src="https://2771001740-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUHgqKYgCiRKdOpWQdi52%2Fuploads%2FpKPIIOpGa4R908ItZfhA%2Fimage%20(12).png?alt=media&amp;token=de06deb6-e593-406c-a24a-0b23469d280d" alt="" width="563"><figcaption></figcaption></figure>
10. Click 'Save changes'. You should not see your source.<br>

    <figure><img src="https://2771001740-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUHgqKYgCiRKdOpWQdi52%2Fuploads%2FXjgNBy2PuXNpLcrSJ09Q%2Fimage.png?alt=media&amp;token=1384d806-ef30-4aa3-81b4-3387a78c4027" alt="" width="563"><figcaption></figcaption></figure>

### Create a Rootly Destination in groundcover

1. Go to: **Integrations → Destinations**
2. Click on Rootly<br>

   <figure><img src="https://2771001740-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUHgqKYgCiRKdOpWQdi52%2Fuploads%2FtRJfG2xeOyMDtIPohNJ2%2Fimage.png?alt=media&amp;token=df31b4b2-7d16-4258-89a4-d233d83af641" alt=""><figcaption></figcaption></figure>
3. Select a name and paste the API Key

<figure><img src="https://2771001740-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUHgqKYgCiRKdOpWQdi52%2Fuploads%2FusJx5eOTh4fLzwTRtdsb%2Fimage.png?alt=media&amp;token=3bbafd4a-198d-4b7e-a446-cecd9dd650ca" alt="" width="341"><figcaption></figcaption></figure>

4. (Optional) Test Connection- This will send a notification similar to the notification that will be send by monitors with `[TEST] Notification from groundcover` in the title to differentiate from 'real' notifications.<br>

<figure><img src="https://2771001740-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUHgqKYgCiRKdOpWQdi52%2Fuploads%2FJCwIM2P3Ar02uag9EGNC%2Fimage.png?alt=media&amp;token=d2cf9ce1-8d45-431d-baec-1856eb054e7a" alt=""><figcaption></figcaption></figure>

5. **Save**

### Payload Structure

The payload sent to Rootly includes:

```json
{
  "title": "{{ summary }}",
  "description": "{{ description }}",
  "status": "firing|resolved",
  "deduplication_key": "{{ fingerprint }}",
  "source_url": "{{ urls.issue }}",
  "metadata": {
    "severity": "{{ severity }}",
    "monitor_name": "{{ monitor_name }}",
    "monitor_id": "{{ monitor_id }}",
    "value": "{{ value }}",
    "threshold": "{{ threshold }}",
    "renotification_count": 0,
    "labels": {
      "cluster": "{{ labels.cluster }}",
      "namespace": "{{ labels.namespace }}",
      "workload": "{{ labels.workload }}"
    }
  }
}
```

{% hint style="info" %}
This payload structure is fixed and cannot be customized. Values shown with `{{ }}` are dynamically populated from your monitor configuration. If you need a custom payload structure, use a [Generic Webhook](/automate/connected-apps/generic-webhook.md) instead.

**Test mode:** When using "Test the connection", the `status` field will be "test" and other fields like `value`, `threshold`, and URLs may contain placeholder values.
{% endhint %}

#### Payload Field Reference

| Field                  | Description                                                                                                                                       |
| ---------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- |
| `title`                | Issue title from the alert                                                                                                                        |
| `description`          | Monitor description with variable expansion                                                                                                       |
| `status`               | Alert state: "firing", "resolved", or "test" (during connection testing)                                                                          |
| `deduplication_key`    | Alert fingerprint for grouping related alerts                                                                                                     |
| `source_url`           | Link to investigate the issue in groundcover                                                                                                      |
| `severity`             | Monitor severity (S1, S2, S3, S4)                                                                                                                 |
| `monitor_name`         | Name of the monitor                                                                                                                               |
| `monitor_id`           | Internal unique ID of the monitor                                                                                                                 |
| `value`                | The value that triggered the alert                                                                                                                |
| `threshold`            | Configured threshold for the monitor                                                                                                              |
| `renotification_count` | Counter for re-notifications (starts at 0)                                                                                                        |
| `labels`               | Monitor labels as key-value pairs. Only labels defined in the monitor's group-by or custom labels are included; keys may be absent if not defined |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.groundcover.com/automate/connected-apps/incident.io-1.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
