• /
  • EnglishEspañolFrançais日本語한국어Português
  • Se connecterDémarrer

Install & configure NRDOT for MSSQL monitoring with Ansible

|View as Markdown (English)

You can install and configure the NRDOT Collector for SQL Server monitoring using the newrelic.newrelic_install Ansible role. The role installs the collector, creates or authorizes the monitoring identity, and configures the collector in a single play.

Prerequisites

  • A New Relic account with a valid license key.
  • A New Relic account ID.
  • Microsoft SQL Server 2017 or later.
  • Ansible Core 2.13 or 2.14, Python 3.10, and the ansible.windows and ansible.utils collections.
  • Self-hosted SQL Server:
    • SQL Server Authentication: A Linux or Windows collector host, and a login in the sysadmin server role (or equivalent) with its password.
    • Windows Authentication or gMSA: A Windows collector host, an administrator PowerShell session, and a Windows account or Group Managed Service Account (gMSA) with the required permissions.
  • SQL Server on AWS RDS:
    • A Linux or Windows collector host with network connectivity to the database endpoint (inbound access granted on the SQL Server port within the security group), alongside the database master username and password.
    • Windows Domain Authentication or gMSA: A Windows collector host and an instance joined to an AWS Managed Microsoft Active Directory domain.
  • Linux collector host: The curl utility, systemd, and the sqlcmd utility installed and available on PATH (or located under /opt/mssql-tools18/bin or /opt/mssql-tools/bin).
  • Windows collector host: The sqlcmd.exe utility installed and available on PATH.
  • Network connectivity to the New Relic OTLP endpoint corresponding to the target region.

Install the role

bash
$
ansible-galaxy install newrelic.newrelic_install

Make sure the required collections are also installed:

bash
$
ansible-galaxy collection install ansible.windows ansible.utils

Configure the playbook

Run the playbook

bash
$
ansible-playbook -i <inventory_file> <playbook_file>.yml

Find and use your data

Once your data is being collected, you can access comprehensive SQL Server database monitoring through the New Relic UI.

To find your SQL Server database entity in New Relic:

  1. Go to one.newrelic.com > All capabilities > Databases.

  2. From the Entity type dropdown, select MSSQL instance, then click Apply.

  3. Select your SQL Server database from the list of entities.

    After setting up SQL Server monitoring with NRDOT, you can:

Set up APM-database correlation

Learn how to correlate your application performance with database operations in New Relic.

Troubleshooting

Learn how to troubleshoot your MSSQL monitoring setup in New Relic.

Metrics reference

Learn about the available metrics collected by the NRDOT Collector.

Droits d'auteur © 2026 New Relic Inc.

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