/
Integrate with Rollbar

Integrate with Rollbar

What does the integration offer?

By using Compass's Rollbar Integration: you can forward Rollbar incidents to Compass. Compass can determine the right people to notify based on on-call schedules, notifies via email, text messages (SMS), phone calls, and iOS and Android push notifications, and escalating alerts until the alert is acknowledged or closed.

How does the integration work?

  • When an item is created, reopened, repeated or reactivated in Rollbar, an alert is created in Compass.

  • When the item is resolved in the Rollbar, the alert is closed in Compass.

  • When the alert is closed in Compass, the item is resolved in the Rollbar.

Set up the integration

Rollbar is a bidirectional integration. Setting it up involves the following steps:

  • Add a Rollbar integration in Compass

  • Configure the integration in Rollbar

Add a Rollbar integration

In this release, only incoming integrations are fully supported in the Standard plan, at a team level. To use outgoing integrations or the outgoing part of bidirectional integrations, upgrade to a higher subscription plan. There may be restrictions on how you can create and apply integration rules as well.

You can add this integration only from your team’s operations page. Adding an integration from your team’s operations page makes your team the owner of the integration. This means Compass only assigns the alerts received through this integration to your team.

To add a Rollbar integration in Compass, complete the following steps:

  1. Go to your team’s operations page.

  2. On the left navigation panel, select Integrations and then Add integration.

  3. Run a search and select “Rollbar”.

  4. On the next screen, enter a name for the integration.

  5. Optional: Select a team in Assignee team if you want a specific team to receive alerts from the integration.

  6. Select Continue.
    The integration is saved at this point.

  7. Go to Edit settings on the integration configuration page.

  8. Select Authenticate with a Rollbar account.

  9. Paste the project access token copied from Rollbar into Rollbar Write Access Token.

  10. Expand the Steps to configure the integration section on the integration configuration page and copy the API URL.
    You will use this key while configuring the integration in Rollbar later.

  11. Select Turn on integration.
    The rules you create for the integration will work only if you turn on the integration.

Configure the integration in Rollbar

To configure the integration of Rollbar with Compass, complete the following steps:

  1. In Rollbar, go to the Project page.

  2. Select Project Access Token.

  3. Copy the token that allows access to all write calls, except POSTing items or deploys (write token). You will use this value in Compass.

  4. In the Rollbar dashboard, go to Settings > Notifications > Webhook.

  5. Paste the API URL previously copied from Compass into URL.

  6. Select Enable Webhook Integration.

Sample payload sent from Rollbar Close

{ "event_name": "new_item", "data": { "item": { "public_item_id": null, "integrations_data": {}, "last_activated_timestamp": 1390917586, "hash": "1cbf07b5da947216f68ea8b8dd4813fa43317b90", "id": 274146948, "environment": "staging", "title": "ReferenceError: Uncaught ReferenceError: testing_rollbar_123 is not defined", "last_occurrence_id": 770525810, "last_occurrence_timestamp": 1390917588, "platform": 1, "first_occurrence_timestamp": 1390917586, "project_id": 6869, "resolved_in_version": 6, "status": 1, "unique_occurrences": null, "framework": 7, "total_occurrences": 1, "level": 40, "counter": 1, "first_occurrence_id": 770525810, "activating_occurrence_id": 770525810 } } }