• Products
  • Get started
  • Documentation
  • Resources

Integrate Opsgenie with StackStorm

StackStorm logo

What does Opsgenie offer StackStorm users?

Use Opsgenie’s pack in StackStorm to perform most API actions used in Opsgenie. Automate systems easily by using StackStorm's other abilities, like triggering a rule. Opsgenie determines the right people to notify based on on-call schedules– using email, text messages (SMS), phone calls and iOS & Android push notifications, and escalates alerts until the alert is acknowledged or closed.

Functionality of the integration

Use defined actions of Alert API, Heartbeat API, Integration API, Policy API, User API, Team API, WhoIsOnCall API, and more in StackStorm, then see the results on the Opsgenie side.

Add StackStorm Integration in Opsgenie

If you're using Opsgenie's Free or Essentials plan or if you’re using Opsgenie with Jira Service Management's Standard plan, you can add this integration from your team dashboard only. The Integrations page under Settings is not available in your plan.

  1. Go to Teams and select your team.

  2. Select Integrations on the left navigation and then select Add integration.

Adding the integration from your team dashboard will make your team the owner of the integration. This means Opsgenie will assign the alerts received through this integration to your team only. Follow the rest of the steps in this section to set up the integration.

  1. Go to Settings > Integrations. Search for StackStorm and select Add

  2. Specify who is notified of StackStorm alerts using the Responders field. Auto-complete suggestions are provided as you type.

  3. Copy the API Key.

  4. Select Save Integration.

Configuration in StackStorm

Use StackStorm administrative web UI to install and configuration for Opsgenie.

A file should exist at the path /opt/stackstorm/configs/opsgenie.yaml containing the options in the following format:

opsgenie.yaml

1 2 --- api_key: "XXXXXXXXXXXXXXX"

When modifying the configuration in /opt/stackstorm/configs/ please remember to tell StackStorm to load these new values by running st2ctl reload --register-configs

Navigate to Packs, search for Opsgenie and click Install.

StackStorm packs

If the configuration file is configured successfully, the installation looks like the following image after this operation:

StackStorm packs

Check StackStorm's pack configuration document if there are any other problems.

Testing the integration

Navigate to the Actions tab and select an Action to run. Then see the results of the execution in the History tab.

StackStorm actions tab

Additional Help