Preview
We're still working on this feature, but we'd love for you to try it out!
This feature is currently provided as part of a preview pursuant to our pre-release policies.
Monitor your SQL Server database performance with comprehensive metrics collected by the NRDOT Collector. By default, New Relic collects the metrics referenced in the Available metrics section. You can enhance your monitoring by enabling your desired metrics listed in the Additional metrics section.
Available metrics
The following metrics are collected automatically for New Relic UI functionality. These are enabled by default and work on any platform via a direct SQL Server connection.
Metric | Description | Unit | Type |
|---|---|---|---|
| Number of batch requests received by SQL Server |
| Gauge (double) |
| Number of SQL compilations needed |
| Gauge (double) |
| Number of SQL recompilations needed |
| Gauge (double) |
| Number of lock requests resulting in a wait |
| Gauge (double) |
| Pages found in the buffer pool without having to read from disk |
| Gauge (double) |
| Time a page will stay in the buffer pool. Available attributes: |
| Gauge (int) |
| Number of users connected to the SQL Server |
| Gauge (int) |
Additional metrics
The following metrics are disabled by default but can be enabled for deeper insights into SQL Server performance and health. These metrics are organized by functionality and most require a direct SQL Server connection.
Metric | Description | Unit | Type |
|---|---|---|---|
| Number of SQL attentions (client cancellation interrupts) received per second |
| Gauge (double) |
| Number of SQL compilations per batch request |
| Gauge (double) |
| Number of page splits per batch request |
| Gauge (double) |
| Ratio of SQL recompilations to compilations, expressed as a percentage |
| Gauge (double) |
| Rate of auto-parameterization activity, broken down by result. Available attributes: |
| Gauge (double) |
| Rate of plan executions, classified by plan guide result. Available attributes: |
| Gauge (double) |
Metric | Description | Unit | Type |
|---|---|---|---|
| Total number of backups/restores |
| Gauge (double) |
| The number of databases. Available attributes: |
| Gauge (int) |
| Number of execution errors |
| Gauge (int) |
| Size of database files. Available attributes: |
| Gauge (int) |
| The number of unrestricted full table or index scans |
| Gauge (double) |
| Number of active transactions in the database. Available attributes: |
| Gauge (int) |
| Total number of deadlocks |
| Gauge (double) |
Metric | Description | Unit | Type |
|---|---|---|---|
| The number of bytes of I/O on this file. Available attributes: |
| Sum (cumulative, int) |
| Total time that the users waited for I/O issued on this file. Available attributes: |
| Sum (cumulative, double) |
| The number of operations issued on the file. Available attributes: |
| Sum (cumulative, int) |
| Reserved space allocated to the database, broken down by usage state. Available attributes: |
| Gauge (int) |
Metric | Description | Unit | Type |
|---|---|---|---|
| Cluster type of the Always-On Availability Group. Available attributes: |
| Gauge (int) |
| Failure condition level configured for the Availability Group (1-5). Available attributes: |
| Gauge (int) |
| Health-check timeout configured for the Availability Group. Available attributes: |
| Gauge (int) |
| Number of synchronized secondary replicas required to commit on the Availability Group. Available attributes: |
| Gauge (int) |
| Size of the log-send or redo queue for an AG database replica. Available attributes: |
| Gauge (int) |
| Redo rate for an AG database replica. Available attributes: |
| Gauge (double) |
| Cumulative time spent in AG flow control, in milliseconds per second observed |
| Gauge (double) |
| Role of the availability replica. Available attributes: |
| Gauge (int) |
| Synchronization health of the availability replica. Available attributes: |
| Gauge (int) |
Metric | Description | Unit | Type |
|---|---|---|---|
| Total number of index searches |
| Gauge (double) |
Metric | Description | Unit | Type |
|---|---|---|---|
| Number of superlatches currently active |
| Gauge (int) |
| Rate of superlatch promotions or demotions. Available attributes: |
| Gauge (double) |
| Number of latch waits per second |
| Gauge (double) |
| Average time spent waiting for latches (lighter-weight synchronization) |
| Gauge (double) |
| Total latch wait time |
| Sum (cumulative, double) |
Metric | Description | Unit | Type |
|---|---|---|---|
| Total number of lock timeouts |
| Gauge (double) |
| Cumulative count of lock waits that occurred. Available attributes: |
| Sum (cumulative, int) |
Metric | Description | Unit | Type |
|---|---|---|---|
| Total number of logins |
| Gauge (double) |
| Total number of logouts |
| Gauge (double) |
Metric | Description | Unit | Type |
|---|---|---|---|
| Amount of memory used by the SQL Server memory pool. Available attributes: |
| Gauge (int) |
| Number of cache objects in the SQL Server cache. Available attributes: |
| Gauge (int) |
| Total number of memory grants pending |
| Sum (cumulative, int) |
| Number of pages in the SQL Server buffer pool. Available attributes: |
| Gauge (int) |
| Total memory in use. Available attributes: |
| Sum (cumulative, double) |
Metric | Description | Unit | Type |
|---|---|---|---|
| Computer uptime |
| Gauge (int) |
| Number of CPUs |
| Gauge (int) |
| Total disk space across volumes hosting SQL Server database files |
| Gauge (int) |
| Amount of system physical memory observed by SQL Server. Available attributes: |
| Gauge (int) |
| Fraction of system physical memory in use by the SQL Server process |
| Gauge (double) |
| Total number of runnable tasks across online schedulers |
| Gauge (int) |
| Total wait time for this wait type. Available attributes: |
| Sum (cumulative, double) |
| Cumulative number of tasks that have waited on this wait type since SQL Server startup. Available attributes: |
| Sum (cumulative, int) |
Metric | Description | Unit | Type |
|---|---|---|---|
| Number of free list stalls |
| Gauge (int) |
| Total number of page lookups |
| Gauge (double) |
Metric | Description | Unit | Type |
|---|---|---|---|
| Number of SQL Server processes (user sessions), broken down by status. Available attributes: |
| Gauge (int) |
| The number of processes that are currently blocked |
| Gauge (int) |
Metric | Description | Unit | Type |
|---|---|---|---|
| Throughput rate of replica data. Available attributes: |
| Gauge (double) |
Metric | Description | Unit | Type |
|---|---|---|---|
| The rate of operations issued. Available attributes: |
| Gauge (double) |
| The number of read operations that were throttled in the last second |
| Gauge (int) |
| The number of write operations that were throttled in the last second |
| Gauge (double) |
Metric | Description | Unit | Type |
|---|---|---|---|
| The number of tables. Available attributes: |
| Sum (cumulative, int) |
Metric | Description | Unit | Type |
|---|---|---|---|
| Total free space in temporary DB. Available attributes: |
| Sum (cumulative, int) |
| TempDB version store size |
| Gauge (double) |
| Cumulative wait time on tempdb allocation pages, broken down by page type. Available attributes: |
| Sum (cumulative, double) |
| Number of tempdb pagelatch wait types with at least one active waiter |
| Gauge (int) |
| Number of tempdb data files configured on the instance |
| Gauge (int) |
| Size of each tempdb data or log file. Available attributes: |
| Gauge (int) |
| Space used by tempdb, broken down by allocation category. Available attributes: |
| Gauge (int) |
Metric | Description | Unit | Type |
|---|---|---|---|
| Number of SQL Server tasks broken down by state. Available attributes: |
| Gauge (int) |
| Number of SQL Server worker threads broken down by state. Available attributes: |
| Gauge (int) |
| Maximum number of SQL Server worker threads configured on the instance |
| Gauge (int) |
| Fraction of configured SQL Server worker threads currently running |
| Gauge (double) |
Metric | Description | Unit | Type |
|---|---|---|---|
| Time consumed in transaction delays |
| Sum (cumulative, double) |
| Age in seconds of the longest currently-open transaction on the server |
| Gauge (double) |
| Total number of mirror write transactions |
| Gauge (double) |
| Cumulative bytes cleaned from the tempdb version store |
| Sum (cumulative, double) |
| Cumulative bytes of row versions written to the tempdb version store |
| Sum (cumulative, double) |
Additional Windows metrics
The following metrics are available on Windows platforms when using the NRDOT Collector with SQL Server. These metrics provide Windows-specific performance insights for SQL Server monitoring.
13 metrics available on Windows platforms
Metric | Description | Unit | Type |
|---|---|---|---|
| System uptime counter |
| Gauge (double) |
| Number of CPU cores available |
| Gauge (double) |
| Memory usage by SQL Server process. Available attributes: |
| Gauge (double) |
| Percentage of pages found in the buffer cache |
| Gauge (double) |
| Ratio of cache hits to cache lookups. Available attributes: |
| Gauge (double) |
| Number of SQL compilations per second |
| Gauge (double) |
| Number of user connections to SQL Server |
| Gauge (double) |
| Number of current locks. Available attributes: |
| Gauge (double) |
| Number of lock timeouts per second |
| Gauge (double) |
| Total number of processes waiting for memory grants |
| Gauge (double) |
| Number of physical database page operations per second. Available attributes: |
| Gauge (double) |
| Number of SQL recompilations per second |
| Gauge (double) |
| Number of transactions per second. Available attributes: |
| Gauge (double) |
Amazon RDS limitations
When monitoring an Amazon RDS for SQL Server instance, certain metrics may report 0 or not be collected due to RDS service restrictions and SQL Server edition limitations.
重要
The following limitations apply specifically to SQL Server instances running on Amazon RDS. Self-hosted SQL Server deployments are not affected by these restrictions.
Metric | Limitation | Affected editions |
|---|---|---|
| Always reports | All editions |
| Not collected. Always On Availability Groups require Multi-AZ deployment, unavailable on Web and Express editions. | Web, Express |
| Emitted but always reports | Web, Express |
For more information, refer to Amazon RDS for SQL Server: Unsupported features and Multi-AZ for Amazon RDS for SQL Server.
Related documentation
Linux instrumentation for self-hosted environments
Learn how to set up MSSQL monitoring in self-hosted Linux environments with New Relic.
Windows instrumentation for self-hosted environments
Learn how to set up MSSQL monitoring in self-hosted Windows environments with New Relic.
Set up APM-database correlation
Learn how to correlate your application performance with database operations in New Relic.