Opsgenie

Use the Opsgenie integration to ingest alerts from specific Opsgenie services.

Overview

Opsgenie (now acquired by Atlassian) is mainly used for for on-call, alerting, and incident management.

Opsgenie integration is intended for users who have Opsgenie set up as the primary alerting and on-call management system.

Use Cases

The integration between Fylamynt and Opsgenie lets you:

  • Run a Fylamynt workflow, when an alert is triggered in Opsgenie. The alert is ingested via a specific service that's selected in Fylamynt.

Configure Opsgenie in Fylamynt

  • Navigate to Settings > Integrations > Opsgenie.

  • Click Add integration to create and configure a new integration instance

Details needed to set up Opsgenie instance in Fylamynt:

Parameter

Required

Opsgenie API token

True

Opsgenie Webhook URL

True

Webhook API Key Name

True

Webhook is used to fetch alerts from Opsgenie in real-time. You can also Enable / Disable Opsgenie Webhook.

Follow the steps listed below in your Opsgenie Account and get the desired parameters to enter in Fylamynt.

  • In your Opsgenie Account, go to “Teams” --> “Select your team” --> “Integrations” --> “Add Integration”.

  • Select API as an integration option.

  • Give read-only access, copy API Key and Save Integration.

  • Now need to configure webhook:

    • Select “Teams” --> “Your Team” --> “Add Action Channel”

    • Provide name for the Action Channel

    • Select Rest Endpoint as a type for Action Channel

    • Add following details:

      • URL: copy Webhook URL from the Opsgenie Webhook URL in the right side panel.

      • Custom Headers:

        • Name: x-api-key

        • Value: add "Webhook API Key value" from right side panel

      • Instructions to get Fylamynt " Webhook API Key value":

      • Under Authorize Fylamynt, choose one of the Webhook API Key Name from the dropdown, and the corresponding Webhook API Key Value should be shown. If no options are available for the Webhook API Key Name, first go to Settings --> API Keys --> Manage Keys to Create a New API Key.

  • Create Managed Action:

    • Select “Teams” --> “Action” --> “Add Action”

    • Select “REST Endpoint” --> (previously created Action Channel) --> “Next” --> “Create”

  • Create Policy for created Managed action:

    • Select “Teams” --> “Policies” --> “Add Action Policy”

    • Tick Enable policy when created, add conditions when you want to trigger Webhooks.

    • Then click on Create and enable policy

Integration Actions

You can add these actions in Fylamynt workflow builder, as part of your workflow.

1. Opsgenie Alert

1. Opsgenie Alert

Integration node to trigger Workflow with a selected Opsgenie service.

Input

Parameter Name

Description

Required

Select Service

Select a Opsgenie service to fetch alerts in Fylamynt

True

Output

Parameter Name

Type

Description

Output

Object

JSON of the incoming Opsgenie Alert

Action Example

Sample Workflow

Opsgenie-Upgrade-CloudFront-Plan-Send-Email

Description: Upgrade CloudFront Price plan to highest in order to reduce latency, once Opsgenie incident triggered indicating too much API latency

NOTE: Replace Distribution config account to your configured distribution.