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. The following 7 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.
Available metrics
The following 7 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.
7 metrics that are enabled by default
Metric | Description | Unit | Type | Attributes |
|---|---|---|---|---|
| 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 |
| gauge (int) |
|
| Number of users connected to the SQL Server |
| gauge (int) | — |
Additional metrics
The following 89 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 | Attributes |
|---|---|---|---|---|
| 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 |
| gauge (double) |
|
| Rate of plan executions, classified by plan guide result |
| gauge (double) |
|
Metric | Description | Unit | Type | Attributes |
|---|---|---|---|---|
| Total number of backups/restores |
| gauge (double) | — |
| The number of databases |
| gauge (int) |
|
| Number of execution errors |
| gauge (int) | — |
| Size of database files |
| gauge (int) |
|
| The number of unrestricted full table or index scans |
| gauge (double) | — |
| Number of active transactions in the database |
| gauge (int) |
|
| Total number of deadlocks |
| gauge (double) | — |
Metric | Description | Unit | Type | Attributes |
|---|---|---|---|---|
| The number of bytes of I/O on this file |
| sum (cumulative, int) |
|
| Total time that the users waited for I/O issued on this file |
| sum (cumulative, double) |
|
| The number of operations issued on the file |
| sum (cumulative, int) |
|
| Reserved space allocated to the database, broken down by usage state |
| gauge (int) |
|
Metric | Description | Unit | Type | Attributes |
|---|---|---|---|---|
| Number of database security principals broken down by type |
| gauge (int) |
|
| Number of database principals created more than one year ago |
| gauge (int) |
|
| Number of SQL users in the database that have no matching server login |
| gauge (int) |
|
| Number of database principals created in the last 30 days |
| gauge (int) |
|
| Number of database role members broken down by member kind |
| gauge (int) |
|
| Number of database role memberships broken down by kind |
| gauge (int) |
|
| Risk level assigned to each database role (1=low, 4=high) |
| gauge (int) |
|
| Number of database roles broken down by usage state |
| gauge (int) |
|
| Number of members in a database role |
| gauge (int) |
|
| Number of security principals (logins, users) at the server level |
| gauge (int) | — |
| Number of members in a server role |
| gauge (int) |
|
Dica
Note: These metrics are not applicable to AWS RDS SQL Server instances.
Metric | Description | Unit | Type | Attributes |
|---|---|---|---|---|
| Cluster type of the Always-On Availability Group |
| gauge (int) |
|
| Failure condition level configured for the Availability Group (1-5) |
| gauge (int) |
|
| Health-check timeout configured for the Availability Group |
| gauge (int) |
|
| Number of synchronized secondary replicas required to commit on the Availability Group |
| gauge (int) |
|
| Size of the log-send or redo queue for an AG database replica |
| gauge (int) |
|
| Redo rate for an AG database replica |
| gauge (double) |
|
| Cumulative time spent in AG flow control, in milliseconds per second observed |
| gauge (double) | — |
| Role of the availability replica |
| gauge (int) |
|
| Synchronization health of the availability replica |
| gauge (int) |
|
Metric | Description | Unit | Type | Attributes |
|---|---|---|---|---|
| Total number of index searches |
| gauge (double) | — |
Metric | Description | Unit | Type | Attributes |
|---|---|---|---|---|
| Number of superlatches currently active |
| gauge (int) | — |
| Rate of superlatch promotions or demotions |
| 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 | Attributes |
|---|---|---|---|---|
| Number of currently active locks held in the database, grouped by lock mode |
| gauge (int) |
|
| Number of currently active locks held in the database, grouped by resource type |
| gauge (int) |
|
| Total number of lock timeouts |
| gauge (double) | — |
| Cumulative count of lock waits that occurred |
| sum (cumulative, int) |
|
Metric | Description | Unit | Type | Attributes |
|---|---|---|---|---|
| Total number of logins |
| gauge (double) | — |
| Total number of logouts |
| gauge (double) | — |
| Number of kill-connection errors per second |
| gauge (double) | — |
Metric | Description | Unit | Type | Attributes |
|---|---|---|---|---|
| Amount of memory used by the SQL Server memory pool |
| gauge (int) |
|
| Number of cache objects in the SQL Server cache |
| gauge (int) |
|
| Total number of memory grants pending |
| sum (cumulative, int) | — |
| Number of pages in the SQL Server buffer pool |
| gauge (int) |
|
| Maximum amount of memory SQL Server is willing to use (target server memory) |
| gauge (int) | — |
| Total memory in use |
| sum (cumulative, double) |
|
Metric | Description | Unit | Type | Attributes |
|---|---|---|---|---|
| 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 |
| 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 |
| sum (cumulative, double) |
|
| Cumulative number of tasks that have waited on this wait type since SQL Server startup |
| sum (cumulative, int) |
|
Metric | Description | Unit | Type | Attributes |
|---|---|---|---|---|
| Number of free list stalls |
| gauge (int) | — |
| Total number of page lookups |
| gauge (double) | — |
Metric | Description | Unit | Type | Attributes |
|---|---|---|---|---|
| Number of SQL Server processes (user sessions), broken down by status |
| gauge (int) |
|
| The number of processes that are currently blocked |
| gauge (int) | — |
Metric | Description | Unit | Type | Attributes |
|---|---|---|---|---|
| Throughput rate of replica data |
| gauge (double) |
|
Metric | Description | Unit | Type | Attributes |
|---|---|---|---|---|
| The rate of operations issued |
| 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 | Attributes |
|---|---|---|---|---|
| The number of tables |
| sum (cumulative, int) |
|
Metric | Description | Unit | Type | Attributes |
|---|---|---|---|---|
| Total free space in temporary DB |
| sum (cumulative, int) |
|
| TempDB version store size |
| gauge (double) | — |
| Cumulative wait time on tempdb allocation pages, broken down by page type |
| 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 |
| gauge (int) |
|
| Space used by tempdb, broken down by allocation category |
| gauge (int) |
|
Metric | Description | Unit | Type | Attributes |
|---|---|---|---|---|
| Number of SQL Server tasks broken down by state |
| gauge (int) |
|
| Number of SQL Server worker threads broken down by state |
| 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 | Attributes |
|---|---|---|---|---|
| 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 | Attributes |
|---|---|---|---|---|
| System uptime counter |
| gauge (double) | — |
| Number of CPU cores available |
| gauge (double) | — |
| Memory usage by SQL Server process |
| gauge (double) |
|
| Percentage of pages found in the buffer cache |
| gauge (double) | — |
| Ratio of cache hits to cache lookups |
| gauge (double) |
|
| Number of SQL compilations per second |
| gauge (double) | — |
| Number of user connections to SQL Server |
| gauge (double) | — |
| Number of current locks |
| 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 |
| gauge (double) |
|
| Number of SQL recompilations per second |
| gauge (double) | — |
| Number of transactions per second |
| gauge (double) |
|