Skip to main content

Opsgenie Alert

The OpsGenie Alert Method enables triggering alerts through Opsgenie to notify whenever an incident is triggered.


Two authentication methods are supported for Opsgenie API integration:

  • Basic is a base64 hash created from the API Key, for example, YTU5ODNiZjYtZTM3OC00Yzk3LWE2YWItOGJlMzU4OWUxOTBm.

  • GenieKey (default) only requires the API Key obtained directly from the Opsgenie panel, so it is easier to use.

The choice between the two authentication methods is offered for convenience, as some users may only have access to one of the methods.

Creating Opsgenie API Key

  1. Log in to your Opsgenie account.

  2. Go to Teams in the top navbar, then click the Add team button:

    Opsgenie key - step1
    Image 1: Add a new team to your Opsgenie account
  3. Hover over and click the name of the team that you've created:

    Opsgenie key - step2
    Image 2: Go to Opsgenie team details
  4. Go to Integrations in the left sidebar, and click the Add integration button:

    Opsgenie key - step3
    Image 3: Create an Opsgenie integration
  5. Click the API icon:

    Opsgenie key - step3
    Image 4: Add opsgenie API key
  6. Copy your Opsgenie API Key:

    Opsgenie key - step3
    Image 5: Opsgenie API key for the Nobl9 Integration

Configuring the Opsgenie Alert Method

You can configure your Opsgenie Alert Method directly in the Nobl9 UI, or by applying a YAML file in sloctl.

Nobl9 UI

To set up the Alert Method in the Nobl9 UI, follow these steps:

  1. Navigate to Integrations > Alert Methods.
  2. Click the button.
  3. Click the relevant Alert Method icon.

Then, in the OpsGenie Configuration Wizard:

  1. Enter the URL (mandatory).
    The URL must start with https://.

  2. Choose the Basic or GenieKey type of Authentication Method from the drop-down list.
    The default value is GenieKey. For more information, refer to the Authentication section.

  3. Enter the API Key (mandatory).
    Paste the API Key from Opsgenie. For more information, refer to the Authentication section.

  1. Select a Project.
    Specifying a Project is helpful when multiple users are spread across multiple teams or projects. When the Project field is left blank then object is assigned to project default.
  2. Enter a Display Name.
    You can enter a friendly name with spaces in this field.
  3. Enter a Name.
    The name is mandatory and can only contain lowercase, alphanumeric characters and dashes (for example, my-alert-method-name). This field is populated automatically when you enter a display name, but you can edit the result.
  4. Enter a Description.
    Here you can add details such as who is responsible for the integration (team/owner) and the purpose of creating it.
  5. Click the Add Alert Method button.

YAML Configuration for Opsgenie

Here’s an example for adding an Opsgenie Alert through YAML (GenieKey):

apiVersion: n9/v1alpha
kind: AlertMethod
name: opsgenie-notification-key
displayName: Opsgenie notification with GenieKey
description: Sends HTTP request to Opsgenie
auth: GenieKey a5983bf6-e378-4c97-a6ab-8be3589e190f
url: <>

Testing the Opsgenie Alert Method in the UI

Users can test their Alert Methods for all notification services supported by the Nobl9 platform through the UI.

To verify that your Alert Method is set up correctly at the time that you configure it:

  1. Navigate to Integrations > Alert Methods.
  2. Follow the process outlined above to add the Alert Method in the Nobl9 UI: complete the steps in the Create Alert Method wizard, and Click the Add Alert Method button.
  3. On the Details screen, click the Test button in the upper-right corner. If the configuration is correct, Nobl9 will display the following message next to the button: Test completed successfully!
If the configuration is incorrect, Nobl9 will provide an error message with relevant details. The content of the error differs depending on the Alert Method channel.
You can also test an existing Alert Method. To do that:
  1. Navigate to Integrations > Alert Methods.
  2. Find the Alert Method you want to test in the list, and click it.
  3. On the Details screen, click the Test button in the upper-right corner.

OpsGenie Alert Method | Terraform Documentation