# Alarms

If an alarm is being fired at Grafana or Cloudwatch, configure a RunBook to run when the alarm fires.&#x20;

To automate this RunBook feature, you'll need:

1. A connection to [Grafana](/unskript-documentation/connnecting/connectors/grafana.md) or [AWS](/unskript-documentation/connnecting/connectors/aws.md).
   1. A [webhook](/unskript-documentation/runbooks/xrunbooks/alarms/create-an-alarm-webhook.md) added to your connection.
2. An alarm set at Cloudwatch or Grafana, configured to send alerts to the webhook:

* [AWS CloudWatch Alarms](#aws-cloudwatch-alarms)
* [Grafana Alarms](#grafana-alarms-webhook)

3. A RunBook that you would like to run when the alert is sent from the external party.

Once the alarm is created, we [pull the alarms](/unskript-documentation/runbooks/xrunbooks/alarms/create-an-alarm-webhook.md#pull-the-alarms) into unSkript.  We can then[ attach the alarm to your RunBook](/unskript-documentation/runbooks/xrunbooks/alarms/attaching-runbooks-to-alarms.md).

When the alarm fires at Grafana or Cloudwatch, the webhook will receive the message, and initiate the execution of your RunBook.

{% embed url="<https://youtu.be/kfsW7pHRqXc>" %}

## Using Alarms

#### Auto-remediate:&#x20;

* Create a RunBook that can automatically remediate the issue. &#x20;
* Once the issue is remediated, send an alert to the team, and ensure that the alarms are no longer firing.

#### Diagnose:&#x20;

* Initiate RunBooks to diagnose the alarm.  With diagnostic information provided immedaitely after the alert sounds, the team will have a better idea of how to resolve the problem.

###


---

# 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://docs.unskript.com/unskript-documentation/runbooks/xrunbooks/alarms.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.
