• /
  • EnglishEspañolFrançais日本語한국어Português
  • ログイン今すぐ開始

Track changes using NerdGraph

|View as Markdown (English)

The change tracking feature allows you to track the effect of various changes on your customers and systems. For example, if you make some deployments, you can use the change tracking feature to monitor the results in New Relic UI charts. You'll also get access to features that help you understand the effects of those changes.

Instead of designating which changes you want to monitor by using our CLI or a CI/CD integration, you can do the same thing using GraphQL mutations via our NerdGraph API.

For general information on using NerdGraph, see Introduction to NerdGraph.

Watch this one-minute video explaining change tracking event setup.

Prerequisites

  • NerdGraph requirements
  • User permissions: Any user type can use NerdGraph to create change events and deployment markers, but only full platform users can access the curated change tracking UI experiences

Use change tracking events to monitor any modification to your system, including deployments, feature flags, business events, operational changes, or custom activities.

This method offers several benefits:

  • Flexible data: Add custom attributes, categories, and types to your events.
  • Broad visibility: You get a unified view of changes across all your accounts.
  • Easy to use: You don't need to know an entity.guid. This feature is powered by New Relic's flexible entity search.

To create an event, use the changeTrackingCreateEvent NerdGraph mutation. The events are stored in NRDB as the ChangeTrackingEvent event type.

The changeTrackingCreateEvent mutation takes an entitySearch.query argument to attach the change to a specific entity. You don't need to know the entity's GUID up front. You can search by other identifying attributes, including the numeric application ID you may already use with the REST APIs. This makes entitySearch the most direct migration path from the REST API, where you record deployments by application ID.

An entity is a component that New Relic assigns a unique GUID to during instrumentation, such as an application or microservice.

Your query must be specific enough to resolve to exactly one entity. If it matches more than one, the mutation fails; narrow it (for example, add AND accountId = '<account id>').

Migrating from the REST APIs?

You don't need to look up an entity GUID first. Search by the numeric application ID you already use with domainId = '<app id>' AND domain = 'APM'. See the Deployment by application ID example below.

Supported operators

Entity search queries support the =, AND, IN, and LIKE operators.

Special characters

The query string treats special characters — (, ., ,, ;, :, *, -, _, and ) — as whitespace. For example, name LIKE ':aws:' matches entity names containing -aws or foo.aws.

Attributes you can search on

You can filter on default entity properties and on tags (tags can be referenced with or without backticks):

Type

Values

Default entity properties

id, accountId, name, domainId, alertSeverity, reporting, indexedAt, firstIndexedAt, lastReportingChangeAt

Tags (examples)

  • language: the agent language for APM applications
  • clusterAgentId: for browser applications, links to the associated APM application's cluster agent
  • aws.accountId: the AWS account ID for infrastructure entities monitored from AWS

Examples

  • Find an entity by its entity GUID: "id = '<entity guid>'"
  • Find an entity by its REST v2 API application ID: "domainId = '<app id>' AND domain = 'APM'"
  • Find an OpenTelemetry service in a specific account: "name = '<service name>' AND domain = 'EXT' AND type = 'SERVICE' AND accountId = '<account id>'"

Sample mutations

The following examples show NerdGraph mutations, with their required and optional attributes, for creating tracking markers:

Use case examples for change tracking events

Here are example GraphQL mutations for creating change tracking events:

Standard categories and types

Feature availability

This feature isn't available in all regions. Refer to the data center and regional availability page to check if it's supported in your region and explore alternative solutions.

Change tracking deployments provide specialized tracking for code deployments and infrastructure changes. This is the legacy method that focuses specifically on deployment events. You can create deployment markers using the changeTrackingCreateDeployment mutation. These markers are stored in NRDB as Deployment event type.

Not affected by the REST API end-of-life

If you're here because of the REST API end-of-life announcement, note that the changeTrackingCreateDeployment NerdGraph mutation on this tab isn't being retired and continues to work.

The REST deployment endpoints - not the NerdGraph mutation - are reaching end of life on July 31, 2027:

  • The REST API v2 deployment endpoints (https://api.newrelic.com/v2/applications/{app_id}/deployments.json)

  • The legacy Deployments v0 API (deployments.xml), served on both the rpm and api hosts in each region - https://rpm.newrelic.com/deployments.xml and https://api.newrelic.com/deployments.xml (US), plus their .eu. equivalents

    If you record deployments through either of those REST APIs, migrate to NerdGraph change tracking before that date. changeTrackingCreateEvent (on the Change tracking events tab) is the recommended mutation for migration. For endpoint-by-endpoint mappings, see the Migrate from REST API v2 to NerdGraph guide.

ヒント

New Relic recommends migrating to change tracking events using changeTrackingCreateEvent for better flexibility and feature support. Deployment markers will continue to work but have limited functionality compared to change events.

Deployment mutation examples

The examples below show how to create deployment markers using the legacy API:

What's next

View and analyze changes

Learn advanced techniques for correlating change data with performance metrics and system behavior.

Query your changes

Learn how to query your change data in New Relic.

Notify your team

Learn how to set up notifications for your change tracking events.

Copyright © 2026 New Relic株式会社。

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.