Create Datadog events from Rollbar

Rollbar users can syndicate exceptions, errors, and code deployments as 'Events' in Datadog.


Configuration is per project in Rollbar.

1. Enable the Rollbar integrations in Datadog

  1. In Datadog, go to Integrations → Integrations and search for Rollbar. Pick the Rollbar by Datadog Integration.
  2. Alternatively, you can use the corresponding link to navigate to the Rollbar integration on your Datadog site directly: US1, US3, US5, EU1, US1-FED, AP1.
  3. Click Install.
  4. Click Install Integration on the next screen.
  5. Choose or Create a New API key. You'll need it in the next step.

2. Configure Datadog integration in Rollbar

  1. In Rollbar, navigate to Settings
  2. Choose Projects in the Setup section.
  3. Click the + button to add a new integration to your project.
  4. Choose Datadog from the list.
  5. Pick the site of your Datadog account.
  6. Paste your Datadog API key.
  7. Click Enable Datadog Integration

3. Validate the integration

  1. In Rollbar, click the Send Test Notification button.
  2. In Datadog, open the Events Explorer and check if the test Event arrived:

Congrats! Datadog is now integrated with Rollbar. Once integrated, the default notification 'Rules' will be activated and sent to your Datadog account.

Customizing Datadog Notification Rules

The Datadog event created by each notification rule can be customized using notification variables and filters. Additionally, you may specify a different API key for each notification rule if you wish to send the events to a different Datadog account.

Customizing Datadog tags

You can set Datadog tags as part of sending customized Rollbar data. These tags would be linked to the Datadog events to filter the logs. Datadog allows tags with the format of <key> or <key>:<value>. You would need to use the <key>:<value> format to optimally utilize Datadog's filters.

You can use existing Datadog tags or have Rollbar automatically create new tags on your behalf (as long as your Datadog settings allow new tags to be created).. You can review Datadog's default tag filters here.

Datadog tagging example

My Rollbar item has the value of production in the environment data key. I would like that to show up in Datadog properly. Let's go through a quick example of properly tagging a Datadog event:

  • Navigate to your Datadog settings

    • Click Projects
    • Click the Datadog logo next to your project name
  • Now either edit your existing rule or configure a new rule. This will show the configuration popup.

  • Scroll down to the Tags section.

  • In the field I will place env:{{environment}}

    • This is because I want to pass the Rollbar item environment and use Datadog's default env key. This would need to be formatted as <key>:<value>.
    • Rollbar would then send env:production to Datadog.

  • Click Save Rule

  • Your notification rule should now show the environment tag being sent

  • Now all future Datadog messages in that project will send the environment.

Automatic Event Priority

When creating an event in Datadog from Rollbar, you can explicitly set the priority (low, normal) or allow Rollbar to automatically determine the priority. Here's how priority is automatically determined:

Rollbar Notification RuleDatadog Priority
Item resolvedlow
Everything elsenormal

Automatic Event Type

When creating an event in Datadog from Rollbar, you can explicitly set the type (error, warning, info, success) or allow Rollbar to automatically determine the type. Here's how type is automatically determined:

Rollbar Notification RuleDatadog Event Type
Item resolvedsuccess
Everything elsedetermined by Rollbar item level

Rollbar item levels are mapped to Datadog event types as follows:

Rollbar Item LevelDatadog Event Type
critical, errorerror
info, debuginfo