• /
  • EnglishEspañolFrançais日本語한국어Português
  • EntrarComeçar agora

MSSQL metrics and events reference

|View as Markdown (English)

Monitor your SQL Server database performance with comprehensive metrics collected by the NRDOT Collector. By default, New Relic collects the metrics and query-level events referenced in the Default metrics and events section. You can enhance your monitoring by enabling your desired metrics listed in the Full-feature metrics section.

Default metrics and events

The following metrics are enabled by default. They are collected on any platform when the receiver is configured with a direct SQL Server connection.

Log events

The following events are collected as OpenTelemetry log records and are enabled by default, except for db.server.procedure_definition which is opt-in. They provide query-level visibility: active query samples, top queries, execution plans, top stored procedures, and stored procedure definitions.

Full-feature metrics

The full-feature configuration collects every default metric plus the following additional metrics. These metrics are organized by functionality and most require a direct SQL Server connection. You can set any of these metrics to true in the metrics section of your configuration to enable them.

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.

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.

Importante

The following limitations apply specifically to SQL Server instances running on Amazon RDS. Self-hosted SQL Server deployments are not affected by these restrictions.

Attribute glossary

The following table describes every verified attribute referenced in the metric descriptions above. A number of metrics in this file reference attributes (such as ag.cluster_type, lock_type, memory_type, replica.role, and others tied to Windows Performance Counter and failover-cluster metrics) that couldn't be verified against the upstream sqlserverreceiver documentation and aren't included here yet.

Azure SQL Database limitations

When monitoring Azure SQL Database, some metrics aren't available because the collector connects to a single database and doesn't have access to instance-level or operating system data.

Importante

The following limitations apply only to Azure SQL Database. Azure SQL Managed Instance and self-hosted SQL Server support these metrics.

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.

Copyright © 2026 New Relic Inc.

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