As a New Relic user, you may need to analyze your telemetry data alongside data stored across multiple databases, data warehouses, and spreadsheets. Manually exporting data from each source and combining it with your observability data offline takes time, can reduce productivity, or it may not meet your internal policies or requirements.
New Relic Lens helps to address these challenges. Lens is a unified query platform within New Relic that lets you connect and query certain data sources directly from New Relic. Write a query in Lens using ANSI SQL and perform cross-database joins to help analyze and correlate data from various sources. Instead of pulling raw data into New Relic, Lens sends each part of the query to the data source where the data lives, so each source does its own processing and returns only the results. Lens then combines these results, minimizing data transfer and ingestion of raw data from external sources.

Capabilities
Lens gives you:
- Cross-database SQL queries: Write ANSI SQL and join data across multiple sources in a single query.
- Built-in NRDB access: Query telemetry, entity, and materialized view data through built-in system connectors, with no setup required.
- External data connectors: Connect to cloud data warehouses, relational databases, document databases, spreadsheets, data lakes, and monitoring tools. See Set up connectors for the full list.
- Materialized views: Save the results of complex, frequently run queries as materialized views to reduce costs and improve performance.
- Query from anywhere: Run Lens queries in Query Builder, Notebooks, or custom dashboards.
Use cases
Lens enables various data analysis scenarios:
- Budget analysis: Compare New Relic utilization data from NRDB with budget data stored in Snowflake to track spending against allocated budgets.
- Workflow optimization: Replace multiple manual export/import steps (from one database to another) with a single SQL query that joins all necessary data, reducing costs and improving efficiency.
- Aggregate data across regions: Track user traffic across various geographical regions by unioning data from different data sources.
- Performance optimization with materialized views: An executive dashboard combines data from 5+ databases and refreshes weekly. By storing the results from the multi-database
JOINquery in a materialized view, you avoid running the computationally expensive query each time someone loads the dashboard. This can reduce query costs and improve page load speed.
Alerts not supported
Lens doesn't support alerts. You can't create alert conditions based on Lens query results.
Pricing
Lens is available to paying customers, including paid non-profit accounts:
- On the Data + User pricing model, there's no extra cost.
- On the Data + Core Compute pricing model, Core CCUs are consumed when you query
telemetry.<New Relic event>tables, which Lens bills as an API call.
Setup at a glance
Setting up Lens involves the following steps:
- Check that you have the necessary permissions
- Set up a connector
- Verify your setup