> ## Documentation Index
> Fetch the complete documentation index at: https://hopsdocs.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Production alert triage

> Turn a noisy Datadog alert into a clear summary and next step.

When a monitor fires, the on-call engineer starts with a wall of graphs and no context. Hops reads the alert, recent deploys and similar past incidents, and posts a short summary with a next step.

<Info>
  **How it runs:** Triggered. An automation runs when a Datadog monitor fires, and you can also ask Hops directly.
</Info>

## What it does

* **Reads the alert in context.** Hops pulls the monitor from Datadog, recent deploys from GitHub and related errors from Sentry.
* **Says what changed and when.** The summary lines up the alert start time with the deploys and error spikes around it.
* **Names a likely cause.** Hops gives its best guess and marks what is confirmed and what is not.
* **Suggests one next step with an owner.** For example, roll back the 14:05 deploy, owner the payments on-call.
* **Never takes action itself.** Hops only summarizes and recommends. People decide and act.

<Frame>
  <img src="https://mintcdn.com/hopsdocs/E03FYifT87c9QmFJ/images/use-cases/pe-prod-alert-triage.gif?s=e485e490bfaa7dc4e247d729db9707cd" alt="Datadog connection, Hops summarized the api-latency monitor with recent GitHub deploys" width="1440" height="810" data-path="images/use-cases/pe-prod-alert-triage.gif" />
</Frame>

## Ask Hops

Copy a prompt into any chat with Hops, or mention `@Hops` in a Space.

```text theme={null}
The api-latency monitor for Acme is firing. What changed and what should we do first?
```

```text theme={null}
Were there deploys in the 30 minutes before the checkout error alert?
```

```text theme={null}
Have we seen this Datadog alert before? Show me the past incidents and what fixed them.
```

```text theme={null}
Summarize the open alerts in the on-call Space by severity.
```

```text theme={null}
Is the current spike in Sentry errors related to the Datadog alert?
```

Example reply:

> api-latency fired at 14:12, p95 at 2.4s (normal 400ms).
>
> * Deploy payments-api #1872 went out at 14:05.
> * Sentry shows a new timeout error on the orders query since 14:06.
> * Likely cause: the new query in #1872 (not confirmed).
> * Next step: roll back #1872. Owner: payments on-call.

## What you get

* **A post within minutes of the alert.** The summary appears in the on-call Space.
* **A saved Doc for the incident.** The alert, timeline and next step are saved as a Doc in **Docs**, which postmortems can reuse.
* **Answers on demand.** Ask Hops follow-up questions in the same thread while you work the incident.

## Connections needed

Connect these apps. Each card opens Connections in the app.

<CardGroup cols={3}>
  <Card title="Datadog" icon="plug" href="https://app.hops.ai/my-hops/connections">
    Monitors and alert history.
  </Card>

  <Card title="GitHub" icon="github" href="https://app.hops.ai/my-hops/connections">
    Recent deploys and pull requests.
  </Card>

  <Card title="Sentry" icon="plug" href="https://app.hops.ai/my-hops/connections">
    Errors around the alert.
  </Card>

  <Card title="Slack" icon="slack" href="https://app.hops.ai/my-hops/connections">
    The on-call Space and incident threads.
  </Card>
</CardGroup>

## Set it up

<Steps>
  <Step title="Connect your apps">
    Connect Datadog, GitHub, Sentry and Slack in **Connections**.

    See [Connections](/docs/connections/overview).
  </Step>

  <Step title="Create the Space">
    Create a **product-eng** Space for on-call and pin the runbook index in Space context.

    See [Spaces](/docs/spaces/overview) and [Space context](/docs/spaces/space-context).
  </Step>

  <Step title="Add the skill">
    Give Hops these instructions:

    ```text theme={null}
    You triage production alerts. Read the monitor, recent deploys and similar past alerts. Summarize what changed and when, the likely cause, and one next step with an owner. Never take action yourself.
    ```

    See [Build a skill](/docs/agents/build-a-skill).
  </Step>

  <Step title="Trigger it">
    Create an automation that runs when a Datadog monitor fires. It posts the summary to the on-call Space and saves the record as a Doc in **Docs**.

    See [Automation](/docs/spaces/automation).
  </Step>
</Steps>


## Related topics

- [Product & Engineering](/teams/product-engineering.md)
- [Issue triage](/teams/product-engineering/use-cases/issue-triage.md)
- [Dispute triage](/teams/support/use-cases/dispute-triage.md)
- [Spend anomaly alert](/teams/finance/use-cases/spend-anomaly.md)
- [Live revenue dashboard](/teams/founders-executives/use-cases/live-dashboards.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.