This sqlserver plugin provides metrics for your SQL Server instance. It currently works with SQL Server versions 2008+. Recorded metrics are lightweight and use Dynamic Management Views supplied by SQL Server.
* *Memory*: PLE, Page reads/sec, Page writes/sec, + more
* *TempDB*: Free space, Version store usage, Active temp tables, temp table creation rate, + more
* *Resource Governor*: CPU Usage, Requests/sec, Queued Requests, and Blocked tasks per workload group
* *Server properties*: Number of databases in all possible states (online, offline, suspect, etc.), cpu count, physical memory, SQL Server service uptime, and SQL Server version
* *Wait stats*: Wait time in ms, number of waiting tasks, resource wait time, signal wait time, max wait time in ms, wait type, and wait category. The waits are categorized using the sasme categories used in Query Store.
**Note**: Version 2 queries are not backwards compatible with the old queries. Any dashboards or queries based on the old query format will not work with the new format. The version 2 queries are written in such a way as to only gather SQL specific metrics (no disk space or overall CPU related metrics) and they only report raw metrics, no math has been done to calculate deltas. To graph this data you must calculate deltas in your dashboarding software.
# Tags
If you are using the original queries all stats have the following tags:
*`servername`: hostname:instance
*`type`: type of stats to easily filter measurements
Version 2 queries all have the following:
*`host`: Physical host name
*`sql_instance`: Physical host and instance name (hostname:instance)