• /
  • EnglishEspañolFrançais日本語한국어Português
  • Log inStart now

Set up connectors

|View as Markdown

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.

Before querying data with Lens, you need to set up connections to supported data sources. Lens provides both system connectors for accessing NRDB data and data connectors for connecting to external databases and other data sources.

Requirements

Before you set up data connectors, make sure you meet the following requirements.

Permissions

If you are an Organization Manager, you have capabilities to access all Lens features by default. If you're not an Organization Manager, the Authentication Domain Manager needs to grant you an organization-scoped custom role with the required Lens capabilities, using either of the following methods:

Important

Some capabilities grant broader access than others. For example, Modify also grants create, update, delete, and query or refresh access. If you only want to grant a narrower capability, select that specific capability instead of Modify.

Database access requirements

If your external database restricts access by IP address, you must whitelist New Relic's IP addresses to allow Lens to connect and query your data. Find the list of IP addresses here to add to your database's allowlist.

System connectors

Lens provides three system connectors for accessing NRDB data. These connectors are available automatically and don't require any setup.

Connector

Description

Access level

Telemetry

Access telemetry data from NRDB, such as transactions, logs, and metrics.

Account level. You can only access data from accounts where you have permissions.

Entity

Access entity data from NRDB, including services, hosts, and applications.

Account level. You can only access data from accounts where you have permissions.

Materialized views

Access materialized view data stored in NRDB (results from queries joining multiple databases).

Organization level. All users with Lens access can query materialized views.

Data connectors

Data connectors connect Lens to external data sources like databases, data warehouses, and spreadsheets. To create, edit, or delete connectors, you need specific RBAC permissions.

Access control

Lens provides two ways to control who can query connectors:

  • RBAC permissions: Users with Lens connectors RBAC permissions can query all connectors in the organization.
  • Fine-grained access control: Users without broad RBAC permissions can still query specific connectors if granted fine-grained access to those connectors. You set this up when you create the connector, as part of the following procedure.

Create a connector

To set up a data connector:

  1. Go to one.newrelic.com > Administration > Connectors.

  2. Click Create a connector.

  3. Select your connector type from the dropdown menu.

  4. Enter the required connection information for your selected connector type.

  5. To grant this connector access to users or groups who don't have RBAC permissions, configure fine-grained access control from the Access control section:

    1. Select the Auth domain containing the users or groups.
    2. Select the User or group.
    3. Select the Lens Viewer role.
    4. To add more users or groups, click Add and repeat the steps above.
  6. Click Create.

After you create a connector:

  • To view the schema or delete the connector, select the menu from the connector row.
  • To update access control settings, select the connector, add or remove access grants, and save your changes.
  • To update the connector configuration, delete and recreate the connector with the new details.

Connector configurations

Select your connector type to view the required fields.

Verify your setup

To confirm a connector is working:

  • View its schema from the menu on the connector row to confirm Lens can see your data source's tables.
  • Query the connector using the connection_name.schema.table format. If your query returns results, the connector is set up correctly.

If you're setting up a connector to support a materialized view, successfully creating the materialized view confirms the connector works end to end.

Lens overview

Learn about Lens features, capabilities, and use cases.

Query data with Lens

Query data in Query Builder, Notebooks, and dashboards.

Materialized views

Create and manage materialized views for better performance.

Copyright © 2026 New Relic Inc.

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