You can install and configure the NRDOT Collector for SQL Server monitoring using the newrelic-install Chef cookbook. The cookbook installs the collector, creates or authorizes the monitoring identity, and configures the collector when you run the newrelic-install::default recipe.
Prerequisites
- A New Relic account with a valid license key.
- A New Relic account ID.
- Microsoft SQL Server 2017 or later.
- Chef 15 or later.
- Self-hosted SQL Server:
- SQL Server Authentication: A Windows, Ubuntu, or RHEL/CentOS collector host, and a login in the
sysadminserver role (or equivalent) with its password. - Windows Authentication or gMSA: A Windows collector host and the Windows domain account (or gMSA) to grant permissions to.
- SQL Server Authentication: A Windows, Ubuntu, or RHEL/CentOS collector host, and a login in the
- SQL Server on AWS RDS:
- A Windows, Ubuntu, or RHEL/CentOS collector host with network connectivity to the RDS endpoint (inbound access granted on the SQL Server port within the RDS security group), alongside the RDS master username and password.
- Windows Domain Authentication or gMSA: A Windows collector host and an RDS instance already joined to an AWS Managed Microsoft Active Directory domain.
- Network connectivity to the New Relic OTLP endpoint corresponding to the target region.
Download the Chef cookbook
Download the newrelic-install Chef cookbook from the Chef Supermarket to your chef-repo directory:
$knife supermarket install newrelic-installReplace the default attributes
Replace the default attributes in attributes/default.rb with your account details:
Upload the Chef cookbook
Upload the newrelic-install Chef cookbook to your Chef server:
$knife cookbook upload newrelic-installUpdate the run list
Add the newrelic-install recipe to the run list of a node:
"run_list": [ "recipe[newrelic-install]"]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:
Go to one.newrelic.com > All capabilities > Databases.
From the Entity type dropdown, select MSSQL instance, then click Apply.
Select your SQL Server database from the list of entities.
After setting up SQL Server monitoring with NRDOT, you can:
- Create custom dashboards to visualize your database metrics
- Set up alerts for critical database performance thresholds
- Explore your data using New Relic query capabilities