Skip to main content

Respond to Alerts

On-call is one of the jobs that agents can help with after code ships. This track is a small starter for a team that wants an agent to read each new alert before a person does. You connect an alert source without real monitoring data and send one test alert. Then you build an Alert Triage agent that writes the first notes for the engineer on call. A trigger then starts the agent for each new alert group. The track takes about 40 minutes.

PageYou doYou learn
1. Send an alert to AutohealAdd a Custom Alert Source, send a test alert with curl, and find it under Work → Alerts.Alert sources, payload mapping, alerts and alert groups
2. Triage each new alert group with an agentBuild an Alert Triage agent. Start it with an alertgroup.created trigger, and send a second alert to see a run start.Alert system tools, alertgroup.created filters, limits, and the ready-made incident agents

Before you start​

  • Do the Quick Start and chapters 1 to 3 of Build Your First Agent. You know the editor, commits, runs, the Summary and the Transcript.
  • You need a terminal with curl. You do not need a monitoring tool. The test alert comes from your terminal.
  • To add an alert source, you need the Project Admin role. If you are a Member, ask a Project Admin to do steps 1 to 3 of page 1 and give you the webhook URL.
  • Use a project where a test alert does not reach people. Page 1, step 1 shows how to check this.

Each page shows the steps in the web app. The CLI steps are at the end of each page.

When you need more​

The agent in this track is small on purpose. For complete triage and investigation agents, see Alert Triage, Incident Response and the autohealai/agents library. Page 2 tells you how to use them.