このページは日本語には対応しておりません。随時翻訳に取り組んでいます。
翻訳に関してご質問やご意見ございましたら、お気軽にご連絡ください

Overview

The ServiceNow Integration uses ServiceNow’s Configuration Management Database (CMDB) to enrich and contextualize your data within Datadog. This integration provides the following key capabilities:

  • Host Tagging: Enriches Datadog hosts with metadata from the ServiceNow CMDB, which allows for improved data organization and filtering.
  • Service Tagging: Populates the Datadog Service Catalog with services and their associated metadata from the ServiceNow CMDB.
  • Network Device Tagging: Adds tags to network devices monitored by Datadog, using metadata from the ServiceNow CMDB.
  • Reference Tables: Automatically enriches logs and events in Datadog with additional fields from ServiceNow CIs by mapping value fields to a primary key.

Host tagging

Enrich your Datadog hosts with ServiceNow CMDB metadata through host tagging. To enable ingestion of host tags:

  1. In ServiceNow, configure a Query Builder query that returns all of the hosts you wish to tag in Datadog. Schedule the query to execute at your desired refresh interval and save it.
  2. Navigate to Datadog’s ServiceNow integration tile. In the Configure section, in the CMDB Enrichment tab, select Host Tagging.
  3. Under Query Configuration, click Add New Query.
  4. Select the ServiceNow Instance and the Query from the dropdown menus.
  5. Select a value for the Hostname Column that maps your query’s root CI hostname field to Datadog’s hostname field. The dropdown options come from the starting node of your querybuilder query.
  6. Select any optional field name remapping with Column Name Maps. By default, tags are applied to the host in the format tagName:columnValue, where tagName is a combination of the table name and the column name.
  7. Click Save.

Expect host tags to populate in Datadog shortly after your queries’ scheduled executions.

Monitor the ingestion process in the Datadog Events Explorer by scoping your search query on source:servicenow.

Additional Non-CMDB field tagging

Some ServiceNow tables are non-CMDB and cannot be selected in the Query Builder. To enrich Datadog hosts with tags from these tables, click Additional Fields on the configuration tile and configure a host tagging query as described above, providing a full dot-walked path. Paths should start from the first attribute name on the root table configured for the query. For example, entering vendor.manufacturer.name for a query with root CI cmdb_ci_server populates hosts with the tag cmdb_ci_server_manufacturer_name.

Note: Only dot-walkable paths that are supported by the ServiceNow Table API are available for use in Additional Fields. Many-to-many relationships may not work out of the box and may require additional configuration.

Service tagging

Enrich your Datadog Service Catalog with ServiceNow CMDB metadata through service tagging. With service tagging, you can populate your Datadog Service Catalog with services from your ServiceNow CMDB.

To enable ingestion of service data:

  1. In ServiceNow, configure a Query Builder query that returns all of the services with which you wish to enrich the Service Catalog. Schedule the query to execute at your desired refresh interval and save it.
  2. Navigate to Datadog’s ServiceNow integration tile. In the Configure section, in the CMDB Enrichment tab, select Service Tagging.
  3. Under Query Configuration, click Add New Query.
  4. Select the ServiceNow Instance and the Query from the dropdown menus.
  5. Select a value from the Service Name Column dropdown menu. The value matches the column name on your query’s root service CI, and populates the service name in the service catalog.
  6. Configure schema mappings to pull additional metadata about your service into the service catalog. See Service definitions for details. For Datadog to accept the ingestion, each field in the mapping needs to be of the correct type to map to the service catalog service definition schema.
  7. Click Save.

Expect to see service data populated in Datadog a few minutes after your queries’ scheduled executions. To view ingestion errors, go to the Events Explorer and search for events with source:servicenow.

Network device tagging

Add tags to your network devices in Datadog populated with data from your ServiceNow CMDB.

With device tagging, you can dynamically enrich network devices monitored by Datadog Network Device Monitoring with device metadata from your ServiceNow CMDB.

To enable ingestion of device tags:

  1. Configure a Query Builder query in your ServiceNow instance. Make sure it is returning the device IP address. Schedule the query to execute at your desired refresh interval.
  2. If you are using a custom IP namespace in Datadog, you need to add it to ServiceNow. Create a column on the Network device CI called u_dd_device_namespace, populated by the corresponding namespace for each device. If this column is not present, ServiceNow uses the default namespace.
  3. After the query is saved in ServiceNow, go to Datadog’s ServiceNow integration tile. In the Configure section, in the CMDB Enrichment tab, select Device Tagging.
  4. Under Query Configuration, click Add New Query.
  5. Select the ServiceNow Instance and the Query from the dropdown menus.
  6. Select the IP Address column that maps your query’s IP Address field to Datadog’s IP Address field.
  7. Select any optional field name remappings.
  8. Click Save.

You can expect to see network device tags populated in Datadog within a few minutes after your queries’ scheduled executions. Any ingestion errors are reported through events viewable in your events explorer.

Monitor the ingestion process in the Datadog Events Explorer by scoping your search query on source:servicenow.

Reference Tables

Use Reference Tables to automatically enrich logs and events with additional fields from your ServiceNow CIs. With Reference Tables, you can map sets of value fields to a primary key, such as a hostname, and automatically append these fields to all logs or events that contain the specified key. To enable ingestion of Reference Tables:

  1. Configure a Query Builder query in your ServiceNow instance. Schedule the query to run at your desired refresh interval and save it.
  2. Select Add New Query and choose your query from the dropdown menu.
  3. In the primary key dropdown, select the column name you want to use as your primary key.
    Optionally, create a Processing Pipeline with this primary key to enrich and correlate logs and events.
  4. Enter a name for your reference table. The Reference Table name must be unique.
  5. Click Save. The Reference Table populates with the data from the query shortly after saving.

Additional non-CMDB fields in Reference Tables

Some ServiceNow tables are non-CMDB and cannot be selected in the Query Builder. To include data from these tables, you can use Additional Fields by specifying a full dot-walked path. These fields are added as extra columns to the reference table, along with the ones defined by the Query Builder.

Note: Only paths supported by the ServiceNow Table API are available for use in Additional Fields. The generated columns are based on the root table name and the last two columns of the field spec. For example, vendor.manufacturer.name generates a column named cmdb_ci_server_manufacturer_name, and location.city generates a column named cmdb_ci_server_location_city assuming a root table of cmdb_ci_server.

Troubleshooting

For tagging to work correctly, ensure that the following are true in your system:

  • The user who created and executes the Query Builder query matches a username in your Datadog configuration. The user in ServiceNow must have the role cmdb_query_builder_read.
  • The number of results returned by your query must be less than or equal to the glide.cmdb.query.max_results_limit setting in ServiceNow. By default, the maximum number of results is 10000. To change the setting, go to Configuration > CMDB Properties > Query Builder Properties.
  • All CIs configured in your Query Builder query must have a 1 label. This ensures you have not created any duplicate CIs, which the parser does not support.

Limitations

  • Ingestion is limited to 100k hosts per execution.
  • Updates to hosts and devices are throttled to a few thousand per hour. Take this limit into consideration when choosing your schedule interval.
  • Host aliases in Datadog are case sensitive. Your ingested CMDB hostnames must exactly match the corresponding hostnames in Datadog.
  • Network device tagging is limited to SNMP devices.
  • Deletions and schema updates of existing tables are not supported.

Further reading

Further Reading