ServiceNow is an IT service management platform for recording, tracking, and managing a company’s enterprise-level IT processes in a single location.

The Datadog ServiceNow integration is a two-way integration that allows you to:

  1. Create context-rich incidents or events in ServiceNow from Datadog alerts.
  2. Create server configuration items (CIs) in CMDB for newly discovered hosts from Datadog using Service Graph Connector for Datadog.

Datadog integrates with the following ServiceNow tools:

  • ITOM
  • ITSM
  • CMDB

CMDB setup


Service Graph Connector for Datadog can automatically populate server and database configuration items (CIs) in the CMDB for new resources discovered by Datadog. The Service Graph connector is available through the ServiceNow store.

For configuration, follow the Service Graph Connector’s guided setup instructions.

Supported CI Types:

  • Server
  • Amazon RDS

The notes below only apply if you have already configured the integration for ServiceNow ITOM/ITSM:

  • Service Graph Connector does not use the Target table and Custom table values from the configuration tile. You can save the integration with the Target table default values.
  • The same ITOM/ITSM user can be used for Service Graph Connector by granting this user the role of cmdb_import_api_admin as described in the Service Graph Connector’s guided setup instructions.

ITOM and ITSM setup

To use any of the modules, first, install the latest Datadog Update Set on your ServiceNow instance, and configure the ServiceNow integration tile in Datadog.

  1. Install the latest Datadog Update Set
  2. Set Datadog account permissions
  3. Instructions for use with ITOM and ITSM

Install the Datadog update set

In ServiceNow:

  1. Search for Update Set and find Retrieved Update Sets in the left menu.
  2. Manually import the Datadog-SNow_Update_Set_vX.X.X.xml file provided.
  3. Once you upload the XML file, the Update Set shows a state of Loaded. Click on the name of the Update Set to preview and commit the code to the system.
  4. Preview the Update Set to ensure there are no errors. Then select Commit Update Set to merge the application into your system.

After setup is complete, search for Datadog in the navigation menu and see tables appear.


In order to access import tables and apply transform maps, the ServiceNow user needs the following permissions:

  • x_datad_datadog.user
  • import_set_loader
  • import_transformer

If you’d like to send notifications directly to the Incident table or Event table, you need the ITIL and evt_mgmt_integration roles.

Configuring Datadog for use with ITOM and ITSM modules

Notifications using @servicenow-<INSTANCE_NAME> in Datadog populate the interim tables selected in your ServiceNow tile. Note the following steps assume you have already set up the ServiceNow tile in the Datadog integrations page. Once that has been completed:

  1. From the dropdown, select the intermediary table you want to send notifications to from the dropdown.
  2. To validate the integration is set up correctly, add @servicenow-<INSTANCE_NAME> in a monitor or event notification. The raw data populates rows in the interim table and is forwarded to the ServiceNow table specified in the mappings and transformations you created.
  3. Use transform maps to customize the formatting for data sent to the tables,
  4. Configure the ServiceNow integration tile in Datadog
servicenow integration

Configure the ServiceNow tile in Datadog for ITOM/ITSM

  1. Navigate in Datadog to the ServiceNow integration tile, on the Integrations page.
  2. Click on Add New Instance.
  3. Add the instance name, which is the subdomain of your ServiceNow domain: <INSTANCE_NAME>
  4. Add the username and password for your ServiceNow instance.

Note: You can create a limited user in ServiceNow just for Datadog.

servicenow integration new instance

Customize data with transform maps

The Datadog Incident and Datadog Event tables use a transform map to transform Datadog events to corresponding incidents and events in ServiceNow.


If you’re not seeing events in your ServiceNow tables and instead have

  • An error message in your Datadog integration tile or an Error while trying to post to your ServiceNow instance notification:

    • Verify only the subdomain was used when entering your instance name.
    • Verify the user you created has the required permissions.
    • Verify the username and password are correct.
  • The integration is configured, an alert triggered, and no ticket is created:

    • Confirm that the interim table is populated. If so, the issue is with mappings and transformations. You can debug your mappings and scripts further by navigating to Transform Errors in ServiceNow.
    • Confirm that you’re working with the interim table you specified in the tile.

    The ServiceNow user needs rest_service and x_datad_datadog.user roles so that it can access the import tables. If you’re using the legacy way of sending notifications directly to either the Incident table or Event table, you need the permissions itil and evt_mgmt_integration.

Need additional help? Contact Datadog support.

Knowledge base

Datadog import host auto-flush rule

To prevent the import set table x_datad_datadog_import_host from accumulating too many rows, an auto-flush rule has been added to the Table Cleaner tool to keep only the last 24 hours of data. This configuration setting can be changed as needed by navigating to in the filter navigator and going into the rule for the x_datad_datadog_import_host table. The Age in seconds field can be updated accordingly.

Integration Configuration Settings

Auto-generate support tickets from Datadog alerts

After ServiceNow is connected to your Datadog account, alerts received can automatically create support tickets and send them to the ServiceNow ticketing queue. From there, your support team is notified of issues using the communication workflows that you have already established inside ServiceNow. Mention @servicenow in the alert message or add @servicenow to the notification list for that monitor.


Use variables in ticket payload and field mappings

Variables can be used in the body of your alerts or in field mappings to ensure details from the event are included in ServiceNow. For example, you can include the title and severity in the appropriate ServiceNow field or you can include a link back to the specific incident in Datadog right from the ServiceNow ticket.

ServiceNow Variables input form
ServiceNow Variables

Incident Priority field mapping

The priority field in ServiceNow incidents is read only and can only be updated using priority lookup rules.

Define Impact and Urgency in monitors to calculate the ServiceNow incident priority.

ServiceNow Priority Field Mapping

Automate support resolution workflow

Once the monitor state returns to normal, the associated support ticket is automatically marked as “resolved”.

ServiceNow Resolved

Defining custom mappings

Click one of the tables, for example Datadog Incident Tables, and scroll to the bottom of the record to see the link for the associated transform map.

Understanding the mapping

Click on the name of the transform map to view the record:

servicenow integration

At the top are two important fields on the Transform record - Source table and Target table:

servicenow integration


  • The source is the import set table you selected (Datadog Incident Tables) and the target is your actual incident table (or event table) where events are stored.
  • The field mappings are at the bottom of the record. Some basic mappings are included. This is where you select the fields to include, define the format, and select the target fields in your ServiceNow instance.

Add a new field mapping

Click New:

servicenow integration

Select the source and target fields for one to one mappings:

servicenow integration

Or, check the Use source script box and define transformations:

servicenow integration

Note: For mapping any custom fields in the Integration Tile, you can use the following mapping script for either the Datadog Event and Incident Transform maps. In this example the field my_field was defined as a custom field in the integration tile:

answer = (function transformEntry(source)
    var additional_info = JSON.parse(source.additional_info);
    return additional_info.custom_my_field;

Define multiple mappings

Use Mapping Assist (under Related Links) to map several source and target fields:

servicenow integration


To validate the integration is set up correctly, add @servicenow in a monitor or event notification. The raw data populates rows in the interim table and is forwarded to the ServiceNow table specified in the mappings and transformations you created.

Further Reading

Additional helpful documentation, links, and articles: