New Relic today announced the general availability of a new platform capability that allows users to directly query entity and relationship data within New Relic Database (NRDB) using the familiar New Relic Query Language (NRQL). This powerful capability allows users to seamlessly join this vital information with their telemetry data, all in one place.

Customer Problem

Previously, entity, relationship, and telemetry data were fragmented across different data stores. This fragmentation made it challenging to perform even basic queries, requiring complex joins and increasing the time and effort needed to gain insights

Solution

This feature unifies data access by making entities and relationships available in NRDB for querying via NRQL. Entity and relationship data (Entity & Relationship event types) is stored in NRDB for a period of 24 hours.  This enables users to easily correlate entities & relationships with telemetry data

Key Benefits

  • Simplified Queries: Use NRQL to directly query entities and relationships, eliminating the need for complex joins across disparate data stores
  • Unified Data Access: Access all relevant data—entities, relationships, and telemetry—within a single platform
  • Create Advanced Scorecards with Direct Entity and Relationship Data:
    • Enforce Tagging Compliance: Define Scorecard rules to easily identify entities (such as hosts, services, or applications) that are missing critical tags (e.g., team, environment, cost_center). A rule could check if all entities related to a specific team have the required compliance tags, flagging non-compliant entities directly on the scorecard.
    • Monitor AWS Reliability and Configuration: Create scorecards that directly assess the configuration and reliability status of your AWS resources. This could include checking relationships between services and their underlying AWS infrastructure to ensure high availability best practices (e.g., ensuring critical services are deployed across multiple availability zones).
    • Gauge Observability Maturity: Create Scorecards that track the presence and quality of key observability components related to specific entities, such as checking if all production services have associated alerts, log ingestion pipelines, and sufficient tracing coverage. This allows for clear, data-driven insights into your overall observability maturity and helps drive continuous improvement.
  • Faster Insights: Quickly and efficiently retrieve the information needed to understand system behavior and troubleshoot issues
  • Improved Correlation: Easily correlate entities and relationships with telemetry data to gain a comprehensive view of your environment

Use Cases

The following use cases illustrate how customers can leverage this feature

Use Case
Correlating CPU Usage with Host Attributes - Analyze CPU utilization for specific hosts based on defined criteria or attributes (e.g., AWS region)

Before this feature

After this feature

Complex queries involving multiple data sources

FROM SystemSample

JOIN (FROM Entity SELECT id,name WHERE type='INFRA-HOST' AND `tags.aws.awsRegion`='eu-central-1')

ON entityGuid=id

SELECT average(cpuPercent) FACET name

Use Case

Viewing Entity state at a specific point in time - Retrieve the state of a specific entity (Host or a container for example) at a past time

Before

After this feature

Not possible

FROM Entity select * where id='<id>' since 7 hours ago until 6 hours ago limit 1

 

Use Case: 
Tracking Entity State Changes - Identify changes in an entity's state over a specific time window

Before

After this feature

Not possible

SELECT * FROM Entity WHERE `id`='<id>' SINCE 3 hours ago

Use Case 

Finding applications related to hosts - Identify the applications running on specific hosts

Before

After this feature

Difficult to correlate applications to hosts

FROM EntityRelationship SELECT sourceEntityGuid, targetEntityGuid, sourceEntityType, targetEntityType, relationshipType   where (sourceEntityType like '%HOST%' and targetEntityType='APPLICATION') or (targetEntityType LIKE '%HOST%' and sourceEntityType='APPLICATION')

New Relic Now Discover the latest features and capabilities shaping observability and driving growth.
Watch On Demand