Adding an incident.io destination

Send SquaredUp monitor alerts to incident.io. An alert fires when a monitor turns warning or error, and resolves when the monitor recovers. Your alert routes in incident.io decide whether an alert opens an incident, who it goes to and how it escalates.

The incident.io destination is available on all SquaredUp plans.

Before you start

You need:

  • A SquaredUp account that can manage notification destinations
  • An incident.io account that can create alert sources and alert routes

1. Create an HTTP alert source in incident.io

SquaredUp sends its alerts to an HTTP alert source in incident.io. Create one for SquaredUp, then copy the URL and token it gives you.

Note

Keep the token safe. Anyone with the token and URL can send alerts to this source.

Don't use the URL from the Query authentication tab. It includes the token, and SquaredUp won't accept it.

  1. In incident.io, go to On-call > Alert routing, open the Sources tab, and click Create source.
  2. On the Select step, search for HTTP and select it. Then, complete the following:
    1. Source unique name:
      Enter a name your responders will recognize, such as SquaredUp.
    2. Type of HTTP source:
      Leave Default selected. SquaredUp sends the payload incident.io expects, so you don't need Custom.
    3. Click Continue.
  3. On the Connect step, do the following:
    1. On the Header authentication tab, copy the URL and the Headers value with their copy buttons. You'll paste both into SquaredUp.
    2. Click Continue. Click Continue anyway when prompted, as the next step doesn't require configuration.
  4. On the Configure step, click Continue then Save and finish. You don’t need to change anything. To set priority or routing from SquaredUp’s alert data later, see Set priority and routing.

incident.io sends alerts from this source to people only when an alert route includes it. If you don’t have a route for it yet, create an alert route on the Routes tab of On-call > Alert routing.

2. Turn off auto-resolve in incident.io

By default, incident.io can close alerts after a set time, even if the monitor is still failing. SquaredUp resolves alerts itself when monitors recover, so turn this off. For more on how it works, see incident.io auto-resolve.

  1. In incident.io, go to On-call > Alert routing, open the Sources tab, and select your SquaredUp source.
  2. Expand Advanced settings.
  3. Turn off Auto-resolve alerts.

3. Add the incident.io destination in SquaredUp

Next, add a notification destination in SquaredUp that uses the URL and token from your alert source.

Note

You can also add the destination while creating a notification rule, from the rule's Add destination option.

  1. In SquaredUp, go to Settings > Destinations and click Add destination.
  2. Choose incident.io.
  3. Complete the following fields:
    1. Destination name:
      Enter a name for the destination.
    2. Alert source URL:
      Paste the URL you copied. The alert source ID at the end of the URL works too.
    3. Token:
      Paste the Headers value you copied. SquaredUp accepts the whole header, Bearer followed by the token, or the token alone. It encrypts the token when you save.
  4. Click Test to check the details. This sends a real alert to incident.io, so read Test alerts first.
  5. Click Save.

4. Send monitor alerts to incident.io

A destination sends nothing until a notification rule uses it. Add the destination to a rule that covers the monitors you want alerts for.

  1. In the workspace, open Monitors, select the Notification rules tab, and click Add notification rule. To use an existing rule, edit it instead.
  2. Choose the monitors the rule covers.
  3. Add your incident.io destination.
  4. Leave Include an image of the tile in the notification on to add a link to a screenshot of the tile to each alert. It's on by default. Choose a light or dark image.
  5. Click Done.

Alert behavior

Each monitor has one alert in incident.io. SquaredUp sends every notification for a monitor with the same deduplication key, so repeat and reminder notifications don't create duplicate alerts.

Monitor changes to
What happens in incident.io
Error or Warning
A new alert fires. If one is already firing, it stays as it is.
Success or Info
The alert resolves.
Not monitored
The alert resolves.
Unknown
Nothing. The alert stays as it is.

An alert keeps the description it fired with. If a monitor goes from warning to error while its alert is firing, the description still shows warning. Check SquaredUp for the current state. If a monitor fails again after its alert resolved, a new alert fires.

Alert contents

  • Title: the monitor and where it lives, for example API latency · Production › Web Services. It doesn't include the state, because the alert keeps the title it fired with.
  • Description: the monitor's state change, its workspace and dashboard, the threshold and value, links to the dashboard and the tile's screenshot in SquaredUp, and a link to manage your notification preferences.
  • Source link: opens the dashboard in SquaredUp, with the tile highlighted.
  • Metadata: severity (critical for error, warning for warning), workspaceName, dashboardName, tileName, workspaceId, dashboardId, tileId, oldState, newState, link and imagePreviewUrl.

To check what SquaredUp sent, open an alert's overflow menu and select Inspect. It shows the payload incident.io received.

Customizing alerts in incident.io

Once alerts are arriving, you can use their metadata to set priority and routing, or link them to catalog services. Both are optional.

Set priority and routing

SquaredUp doesn't set the alert's priority or team directly. incident.io uses the defaults on your alert source, shown in its Priority card. The default is Urgent unless you change it. To use the metadata instead, turn a key into an alert attribute:

  1. In incident.io, go to On-call > Alert routing > Sources and open your SquaredUp source.
  2. In the attributes section, select + Add > Create a new attribute, give it a name, and enter an expression that reads the key, for example $.metadata.severity.
  3. To set priority from it, go to Settings > Alerts > Priorities. Add critical as an alias of your highest priority and warning as an alias of a lower one. Aliases are case-sensitive.

To route by workspace or dashboard, create attributes from $.metadata.workspaceId or $.metadata.dashboardId the same way. IDs stay the same if someone renames the workspace or dashboard.

If you use the incident.io Catalog, you can tie each SquaredUp alert to the right catalog entry, such as a service. incident.io can then route the alert to the team that owns the service, and incidents opened from it start with the affected service filled in.

  1. Decide which SquaredUp workspace or dashboard represents each service. Copy its ID from SquaredUp, or from the workspaceId or dashboardId of an alert you've received. To find it in an alert, open the alert's overflow menu and select Inspect.
  2. In incident.io, add that ID as an alias on the service's catalog entry.
  3. On your SquaredUp alert source, create an attribute that uses your service catalog type, with the expression $.metadata.workspaceId or $.metadata.dashboardId. incident.io matches the value against each entry's name, external ID and aliases.
  4. Use the attribute in your alert routes, for example to send each alert to the service's owning team.

Use workspace IDs if each service has its own SquaredUp workspace. Use dashboard IDs if services share a workspace.

Things to know

Some alerts don’t behave the way you might expect. Check these before you rely on the destination for paging.

Test alerts

Clicking Test when you add an incident.io destination sends a real, firing alert to incident.io. If your alert route opens incidents or pages people for this source, the test does too.

To avoid paging anyone, test before you create the route, or resolve the test alert in incident.io when you’re done.

Manual resolution

SquaredUp resolves an alert only when it sends a notification for the monitor's recovery. No recovery notification is sent if, while the alert is firing, you:

  • Pause or delete the notification rule
  • Remove the incident.io destination from the rule
  • Delete the tile, dashboard or workspace being monitored
  • Change the destination's alert source URL

Resolve those alerts in incident.io.

incident.io auto-resolve

An alert source can resolve its alerts automatically a set number of minutes after they fire. The countdown starts when the alert fires, and later notifications, including reminders, don't reset it. If a monitor stays failing for longer than the timeout, incident.io resolves its alert while the problem continues.

SquaredUp already resolves alerts when monitors recover, which is why the setup steps turn auto-resolve off.

If you keep it on, set Resolve after longer than your monitors usually stay failing. To keep alerts open while they're attached to an incident, turn on Skip auto-resolve if alert is attached to an active incident.

Tiles with several objects

A tile that monitors several objects, such as one state per server, sends one alert for the tile's overall state. It doesn't send one alert per object.

Troubleshooting

When a send fails, SquaredUp marks the destination as failed in Settings > Destinations and shows the reason.

If alerts arrive but don't open incidents, check the alert route for this source in incident.io. SquaredUp only sends alerts. Routes decide what happens next.

Message
Likely cause
Fix
Access is not authorized
The token is wrong or was rotated.
Copy the current token from the alert source and update the destination.
Access denied
The token doesn't belong to this alert source.
Check the URL and token come from the same alert source.
Invalid request
The alert source in the URL doesn't exist, or incident.io rejected the alert.
Copy the URL again from the alert source's Header authentication tab.
Invalid config
The URL or token is missing, or the URL isn't an incident.io alert source URL.
Copy the URL and Headers value again from the Header authentication tab.
Too many requests
incident.io is limiting requests.
Wait. The next notification sends as normal.

Was this article helpful?


Have more questions or facing an issue?