You can query New Relic data in several ways, including in the UI or via API.
To understand your New Relic-stored data better, see Data types.
Query data in the UI
Reasons to query your data from the New Relic UI:
- To answer a specific question
- To create a custom chart or dashboard
- To access and navigate your data in a quick, visual way
There are two ways to query data in the New Relic UI: using query languages (New Relic query language or our PromQL-style query language), or using simpler query interfaces that don't require knowledge of how to write a query.
Use NRQL or PromQL-style queries in the UI
There are two ways to write your own queries to retrieve data and build charts:
- Query builder - NRQL mode: query using New Relic query language (NRQL), the same language we use to build most of our UI experiences.
- Query builder - PromQL-style mode: write basic queries using a PromQL-style query.
Query using simple UI interfaces
New Relic One offers several experiences that don't require knowledge of NRQL:
- Data explorer: an intuitive data navigator to create visualizations for events and metrics.
- Query builder (basic mode): a simple, query-less, chart-building experience.
- Distributed tracing query: a specialized UI for querying traces.
- Logs query: a specialized UI for querying New Relic Logs data.
Query data via API
There are several APIs for retrieving and querying New Relic data. You can run NRQL (our query language) queries with NerdGraph (our GraphQL API).
For more on New Relic APIs, see Intro to New Relic APIs.