Get started with Opsgenie as a user
Learn how to configure your profile, get notifications from Opsgenie and view on-call schedules.
SignalFx detectors monitor signals and send alerts when they cross defined thresholds. With the SignalFx Integration, Opsgenie acts as a dispatcher for these alerts, determines the right people to notify based on on-call schedules– notifies them using email, text messages (SMS), phone calls, and iPhone & Android push notifications, and escalates alerts until they are acknowledged or closed.
Opsgenie has a specific API for SignalFx Integration, SignalFx sends alerts to Opsgenie and Opsgenie handles the automatic creation of alerts.
SignalFx detectors monitor signals and send alerts when they cross defined thresholds. When an alert is created in SignalFx, an alert is also created in Opsgenieautomatically through the integration. When values are back to normal, SignalFx detectors resolve the alert. When an alert is resolved in SignalFx, an alert is also closed in Opsgenie.
SignalFx is an API-based integration. Setting it up involves the following steps:
Add a SignalFx integration in Opsgenie
Configure the integration in SignalFx
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.
Go to Teams and select your team.
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.
To add a SignalFx integration in Opsgenie:
Go to Settings > Integrations.
Select Add integration.
Run a search and select “SignalFx”.
On the next screen, enter a name for the integration.
Optional: Select a team in Assignee team if you want a specific team to receive alerts from the integration.
Select Continue.
The integration is saved at this point.
Expand the Steps to configure the integration section and copy the API URL.
You will use this URL while configuring the integration in Opsgenie later.
Select Turn on integration.
The rules you create for the integration will work only if you turn on the integration.
In SignalFx, open the Organization Overview page.
Select a metric you want to create alerts for and then the bell icon in the upper-right corner.
Select New Detector From Chart.
Enter a value for Detector Name and select Create Alert Rule.
On the Alert screen, enter values for alert signal, condition, settings, and message.
In Alert Recipient, select Add Recipient and select Webhook.
Select Custom.
Paste the API URL you copied while adding the integration in Opsgenie into URL.
Select Activate Alert Rule.
Select SAVE.
The Sources field of the following snippet is a string representation of a JSON object the content of which can differ; hence, the whole Sources object is added to the available draggable (dynamic) fields so that the custom fields can be extracted as needed. For example, to add the dsname field of the Sources object to alerts, use {{sources.dsname}}.
(in JSON format)
1
2
3
4
5
6
7
8
9
10
11
12
{
"severity": "Critical",
"sources": "{\"AWSUniqueId\":\"i-274xxxx1_us-west-2_97xxxxxxxx\",\"dsname\":\"value\",\"host\":\"ip-172.us-west-2.compute.internal\",\"plugin\":\"signalfx-metadata\",\"plugin_instance\":\"utilization\",\"sf_metric\":\"memory.utilization\"}",
"rule": "Create Opsgenie Alert",
"alertTimestamp": 1463567930000,
"eventType": "_SF_PLOT_KEY_Ciu5eDlAgAc_9_3",
"incidentId": "CiYI3ipAgnA",
"detector": "Memory Used % Detector",
"detectorUrl": "https://app.signalfx.com/#/detector/Ciu5eDlAgAc/edit",
"currentValue": "4.07361626150254",
"status": "too high"
}
Close alert payload
(in JSON format)
1
2
3
4
5
6
7
8
9
10
11
12
{
"severity": "Critical",
"sources": "{\"AWSUniqueId\":\"i-2xxx1_us-west-2_974xxxxxxx\",\"dsname\":\"value\",\"host\":\"ip-172-x.us-west-2.compute.internal\",\"plugin\":\"signalfx-metadata\",\"plugin_instance\":\"utilization\",\"sf_metric\":\"memory.utilization\"}",
"rule": "Close Opsgenie Alert",
"alertTimestamp": 1463568222190,
"eventType": "_SF_PLOT_KEY_Ciu5eDlAgAc_9_3",
"incidentId": "CiYI3ipAgnA",
"detector": "Memory Used % Detector",
"detectorUrl": "https://app.signalfx.com/#/detector/Ciu5eDlAgAc/edit",
"currentValue": "4.07361626150254",
"status": "ok"
}
Was this helpful?