Slack (Legacy) Integration
is a very popular team communication platform. OpsGenie is an alert and notification management solution that is highly complementary to Slack.
So what does OpsGenie have to offer for Slack users?
OpsGenie has a native two-way integration with Slack. It's easy to configure and powerful: notifications of OpsGenie's robust alerts go right into your Slack channel. In turn, users can acknowledge, close or assign these alerts from the channel, as easily as entering a command like /genie ack 12.
Add a Slack integration in OpsGenie, and in seconds you will have combined Slack's easy-to-use team collaboration platform with OpsGenie's rich alert notification system and on-call rotation. You can execute actions on the alert just by typing a /genie command, into the chat.
Actually, there's more to what you can do on OpsGenie just by entering simple commands to Slack channel. Using genie command, you can also mute OpsGenie notifications, get alert details, view schedule on-call, etc. OpsGenie's native Slack integration is, really that powerful.
Configuring Slack integration
- Please create an OpsGenie account if you haven't done already.
- In Slack; go to Integrations page, click on "Add New Integration" and select OpsGenie to Add.
- Follow the instructions in Slack and save integrations on both Slack and OpsGenie.
All set! Now when an OpsGenie alert is created, acknowledged etc. the notification will be automatically forwarded to your Slack channels as messages.
Using /genie Command
OpsGenie matches users with Slack as well
OpsGenie can match the Slack user who has executed a command from Slack, with the user registered in OpsGenie. OpsGenie does this by matching the user e-mail addresses. So if your users use the same e-mail addresses in Slack and OpsGenie, then the commands they execute from Slack will be attributed to their OpsGenie accounts as well. For example, a user can send a close alert command from Slack and the same user will be automatically recognized in OpsGenie as the closer of the alert.
You can easily execute actions on OpsGenie alerts, just by entering a command with the tinyId of the alert into your Slack channel. Note that you can execute a single command on multiple alerts.
Acknowledge Alert :
/genie ack [tinyID tinyID2..]
Close Alert :
/genie close [tinyID tinyID2..]
Add Note to Alert :
/genie note [note] to [tinyID tinyID2..]
Add Tag to Alert :
/genie addtag [tag1,tag2,..] to [tinyID tinyID2..]
Acknowledge All Open Alerts :
/genie assign [tinyID tinyID2..] to [user]
/genie own [tinyID tinyID2..]
/genie exec [action] on [tinyID tinyID2..]
/genie alert [alert message] for [user team]
/genie get [tinyID]
Lists all open alerts.
/genie list integrations
/genie list policies
/genie enable [name]
/genie disable [name]
Takes on-call for the specified amount of time for the team or schedule. Default amount of time is 1h. If no schedule/team is specified, the user will take on-call for his team's schedule, or a single schedule he's participant in.
/genie oncall [me/user] [h/m/d] for [team/schedule/all]
Sample uses are:
/genie oncall me 2h for weekend_schedule /genie oncall firstname.lastname@example.org 1d for ops_team /genie oncall me 2h for all /genie oncall me 45m /genie oncall me
Retrieves oncall user information from all schedules, restricted roles with Show All disabled will only see schedules of his own.
Mutes notifications for the user. Mutes for 5 minutes if not given.
/genie mute [me/username] [minutes(optional)]
Clears mute setting.
/genie unmute [me/username]
You can list all available commands by entering /genie help into the channel.