Attaching runbooks to alarms
You've created an alert, and connected to an unSkript Webhook. Let's connect it to a RunBook!
Last updated
You've created an alert, and connected to an unSkript Webhook. Let's connect it to a RunBook!
Last updated
In order to connect an alarm to a RunBook you must have first completed the following steps:
Create an alert
Create a Cloudwatch Alert
Sync the alerts into unSkript
In your Proxies tab, find the connection with your webhook, and click the "Pull Alarms" options from the 3 dot menu:
The Alarm must have fired at least once. You can test the alert from Grafana or Cloudwatch as a proxy.
Have a RunBook in mind to connect to the alert.
With these steps completed, we are ready to connect the Alert to the RunBook.
Find your Alarms: Click the Events button in the top navigation of unSkript. You'll land on the listing of alarms that are already attached to RunBooks (if this is the first alarm, the table will be empty).
Alarms not attached to RunBooks: Since your alarms are not yet attached to a RunBook, click "unattached" on the top right of the table. This will give you a list of all alarms that have been synced into unSkript, but do not yet have a RunBook connected. You can use the search box to filter the results. The the screenshot below, we have filtered on the term "docs."
Attach your alarm: Click the checkbox to select the alarms you'd like to connect to a RunBook, and then click the "attach RunBook" button that is above the table.
Select your RunBook: Select the RunBook you'd like to connect to the alarm
If your alarm has fired, you will be prompted to connect the output of the alarm to the input parameters of your RunBook.
If your alarm has not fired, you can TEST your alarm.
Send a Cloudwatch test
To connect alarm parameters to RunBook input parameters, we will use JQ commands:
In the screenshot above, the left side shows the input parameters for the RunBook (in this case "alarm_name" and "alarm_value." The right side shows the 5 most recent alerts from the alarm.
Use JQ commands to select the items from the JSON to populate the RunBook inputs.
if you have never used jq, there is an autofill feature. Type a period into the box, and a set of options will appear.
Once you have chosen the desired path, click return, and the value will appear below the field.
Click attach RunBook to connect the alert to the RunBook.