• Products
  • Get started
  • Documentation
  • Resources

Integrate Opsgenie with AppOptics

AppOptics logo

AppOptics provides a simple Web API, as well as language bindings and integration with collection agents such as "statsd" and "collectd" to make it very easy to store metric data in AppOptics data store.

AppOptics create alerts in Opsgenie when configured thresholds for metrics are exceeded.

What does Opsgenie offer AppOptics users?

Opsgenie has a webhook integration with AppOptics. Use the integration to send AppOptics incidents to Opsgenie’s API, with detailed information. Opsgenie acts as a dispatcher for AppOptics alerts, determines the right people to notify based on on-call schedules– notifies via AppOptics, text messages (SMS), phone calls and iOS & Android push notifications, and escalates alerts until the alert is acknowledged or closed.

Functionality of the integration

  • When an alert is created in AppOptics, an alert is also created in Opsgenie automatically through the integration.

  • When an alert is closed in AppOptics, the alert in Opsgenie is also closed.

Add AppOptics 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 AppOptics and select Add

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

  3. Copy the integration API Key by clicking on the copy button or selecting. This is used in AppOptics configuration.

  4. Select Save Integration.

Configuration on AppOptics

  1. In AppOptics, go to the Account Settings page.

  2. Select the Services tab.

  3. Select Opsgenie from the list of Available Services. Select the (+) next to Configured Services to add a new service destination or click on an existing one to edit.

  4. Paste the API key you copied into API key field.

  5. Click Create service.

  6. Specify comma-separated teams, tags, and recipients for the Opsgenie alerts.

AppOptics organization settings

You can also refer to AppOptics's support document for this integration.

Sample Payload

JSON

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 { "alert": { "id": 4892664, "name": "test alert", "runbook_url": "runbook.com", "version": 2, "description": "test alert" }, "trigger_time": 1424793470, "conditions": [ { "id": 611876, "type": "above", "threshold": 1, "duration": 60 }, { "id": 61187, "type": "average", "threshold": 2, "duration": 40 } ], "violations": { "test-source": [ { "metric": "cpu", "value": 43, "recorded_at": 1424793470, "condition_violated": 611876 }, { "metric": "metric1", "value": 51, "recorded_at": 1427793470, "condition_violated": 611876 } ], "source" :[ { "metric": "metric2", "value": 3, "recorded_at": 1624793470, "condition_violated": 611876 } ] }, "metric": { "name": "disk_read", "type": "gauge" }, "measurement": { "value": 50, "source": "test-source" }, "measurements": [ { "value": 50, "source": "test-source" } ] }

Additional Help