ChatOps

Throughout this documentation, references are made to various chat commands. Incident response actions use Slack slash commands (e.g. /ir page), handled by our incident response bot. This page gives an overview of the commands we've referenced in this documentation, and what they do behind the scenes.

Incident Response#

Our /ir commands look up on-call schedules in OpsGenie and show each on-call person's name, with their phone number when their Slack profile has one.

/ir#

This command lists out the current Incident Commander(s) on-call, their phone numbers, and a message telling users how to page them.

Incident Commander List

/ir page#

This is the command we use to manually trigger our incident response process. It opens a form with three fields: Title, Severity and Description.

Creating an Incident

When you submit the form, the bot:

Links to the Jira incident and the new Slack channel are posted in the channel where you ran the command.

Paging Incident Commanders

The bot adds the Incident Commanders who were paged to the new channel and posts a message there for responders. The message links to the Jira incident and to these docs, lists the Incident Commander's first actions, and shows the most common /ir commands.

Incident Channel

If the bot can't page the Incident Commanders, it shows you an error message. Run /ir to see the on-call Incident Commanders' phone numbers and call them.

/ir responders#

This works similarly to the /ir command, but it uses all of the team schedules instead of just the Incident Commander schedules. It will list out all the current people who are on-call for each team. This is useful to also know who will likely be joining the incident call momentarily.

Listing Responders

/ir page responders#

This pages the on-call responders for every team instead of the Incident Commanders. This is rarely used, since generally only the relevant team will get paged. However, sometimes we require an "all hands on deck" response, and need the ability to quickly page all the current on-calls. If a team's page fails, the bot posts a warning that names the team.

Paging Responders

/ir who <target>#

If <target> is a team name, this lists that team's current on-call. Otherwise it's treated as a user search — it lists the contact info for the matched person, along with a message telling users how to page them.

For example, /ir who hank shows:

Identifying Users

/ir page <team>#

This pages the on-call responders for one team. Team names are not case-sensitive. If the page fails, the bot posts a warning that names the team.

/ir page <user>#

This will page a specific person. If the bot is in the channel where you run the command, it also adds that person to the channel.

For example, /ir page hank shows:

Paging a User

Pages sent with /ir page <user>, /ir page <team> and /ir page responders tell the person being paged who paged them and which channel the page came from.

/ir help#

This lists every /ir command. Only you can see the list.

Listing Commands