Microsoft SQL Server
Monitor SQL Server 2005 and above with SQL queries from the Component Agent.
Supported Components and Versions#
| LAYER | COMPONENT | VERSION |
|---|---|---|
| DB Server | MSSQL | 2005 and above |
Monitoring Strategies for Components#
Monitoring of these DB servers is using database specific SQL queries triggered from HEAL’s Component Agent. The component agent can reside on the same host, or it can trigger these queries remotely.
KPIs collected#
| Component Name | kpi_name | kpi_identifier | KpiDescription | Units |
|---|---|---|---|---|
| MSSQL | Full Scans | Full Scans/sec | The count of times a database transaction has encountered a deadlock. | Count |
| MSSQL | Probe Scans | Probe Scans/sec | Number of probe scans per second in interval | Count |
| MSSQL | Range Scans | Range Scans/sec | Number of Range scans per second in interval | Count |
| MSSQL | Free Pages | Free pages | the number of pages that are available for allocation in the database. | Count |
| MSSQL | Page Reads | Page reads/sec | Number of page reads per interval | Count |
| MSSQL | Page Writes | Page writes/sec | Number of page writes per interval | Count |
| MSSQL | Active Transactions | Active Transactions | Number of users in an active transaction at the moment of Snapshot | Count |
| MSSQL | Transactions per Second | Transactions/sec | Number of transactions per second in an interval | Count |
| MSSQL | Logins | Logins/sec | Number of users having an open connection to the server per interval. | Count |
| MSSQL | Logouts | Logouts/sec | Number of logouts per interval. | Count |
| MSSQL | User Connections | User Connections | Total number of connected users at the moment | Count |
| MSSQL | Total Server Memory | Total Server Memory (KB) | Amount of dynamic memory (in kilobytes) the server is using currently (Per interval). | Kilobytes |
| MSSQL | SQL Compilations | SQL Compilations/sec | Number of SQL statements compiled per interval. | Count |
| MSSQL | SQL ReCompilations | SQL Re-Compilations/sec | Number of SQL statements re-compiled per interval. | Count |
| MSSQL | Data File Size | Data File(s) Size (KB) | Space used by the respective database files and data in interval. | Kilobytes |
| MSSQL | Lock Waits per Second | Lock Waits/sec | the number of transactions waiting for a lock per second. | Count |
| MSSQL | Buffer Cache Hit Ratio | Buffer cache hit ratio | This counter indicates how often SQL Server goes to the buffer not the hard disk to get data | Percentage |
| MSSQL | Page Lookups | Page lookups/sec | Number of requests to find a page in the buffer pool | Count |
| MSSQL | Total Pages | Total pages | Total number of pages in the buffer pool. | Count |
| MSSQL | Index Searches | Index Searches/sec | the number of index searches performed by the database per second. | Count |
| MSSQL | Page Splits | Page Splits/sec | Number of page splits per second that occur as the result of overflowing index pages | Count |
| MSSQL | Batch Requests | Batch Requests/sec | This counter measures the number of batch requests that SQL Server receives per second and generally follows in step to how busy your servers CPUs are | Count |
| MSSQL | Number of Deadlocks | Number of Deadlocks/sec | The number of lock requests that resulted in a deadlock. | Count |
| MSSQL | Average Latch Wait Time | Average Latch Wait Time (ms) | This is the average latch wait time (in milliseconds) for latch requests in the last second | Milliseconds |
| MSSQL | Query Key Value | QUERY_KEY_VALUE | KPI shows query data in key value pair | Text |
| MSSQL | Established | ESTABLISHED | Number of established connections for a given port | Count |
| MSSQL | Close Wait | CLOSE_WAIT | Number of close_wait connections for a given port | Count |
| MSSQL | Sync Sent | SYN_SENT | Number of sync sent connections for a given port | Count |
| MSSQL | Time Wait | TIME_WAIT | Number of time_wait connections for a given port | Count |
| MSSQL | Fin Wait 1 | FIN_WAIT_1 | The number of TCP connections currently in the FIN_WAIT_1 state. | Count |
| MSSQL | Sync Receive | SYN_RCVD | Number of synchronously received messages. | Count |
| MSSQL | Active Sessions | mssql_active_sessions | the number of active user sessions in the system at a given time. | Count |
| MSSQL | Inactive Sessions | mssql_inactive_sessions | Number of inactive database sessions that are currently open. | Count |
| MSSQL | Max Processes | mssql_max_processes | the maximum number of processes used by the software. | Count |
| MSSQL | Max Sessions | mssql_max_sessions | the maximum number of sessions used by the software. | Count |
| MSSQL | Sql Text | MSSQL_SQL_TEXT | Query is displayed corresponding to the record selected in SQL KPI | Characters |
| MSSQL | Total Exec Time | MSSQL_TOTAL_EXEC_TIME | 'Returns Total Execution Time in ms - (Total elapsed time , reported in microseconds (but only accurate to milliseconds), for completed executions of this plan) / 1000.' | Milliseconds |
| MSSQL | Avg Exec Time | MSSQL_AVG_EXEC_TIME | 'Returns Average Execution Time in ms - ((Total elapsed time , reported in microseconds (but only accurate to milliseconds), for completed executions of this plan) / execution_count)) / 1000.' | Milliseconds |
| MSSQL | Last Exec Time | MSSQL_LAST_EXEC_TIME | 'Returns Last Execution Time in ms - (Elapsed time, reported in microseconds (but only accurate to milliseconds), for the most recently completed execution of this plan / 1000).' | Milliseconds |
| MSSQL | Min Exec Time | MSSQL_MIN_EXEC_TIME | 'Returns Minimum Execution Time in ms - (Minimum elapsed time, reported in microseconds (but only accurate to milliseconds), for any completed execution of this plan / 1000).' | Milliseconds |
| MSSQL | Max Exec Time | MSSQL_MAX_EXEC_TIME | 'Returns Maximum Execution Time in ms - (Maximum elapsed time, reported in microseconds (but only accurate to milliseconds), for any completed execution of this plan / 1000).' | Milliseconds |
| MSSQL | Total Cpu Time | MSSQL_TOTAL_CPU_TIME | 'Returns Total CPU Time in ms - (Total amount of CPU time, reported in microseconds (but only accurate to milliseconds), that was consumed by executions of this plan since it was compiled / 1000).' | Milliseconds |
| MSSQL | Avg Cpu Time | MSSQL_AVG_CPU_TIME | refers to the average amount of CPU time consumed by a process or thread over a period of time. | Milliseconds |
| MSSQL | Min Cpu Time | MSSQL_MIN_CPU_TIME | 'Returns Minimum CPU Time in ms - (Minimum CPU time, reported in microseconds (but only accurate to milliseconds), that this plan has ever consumed during a single execution / 1000 ).' | Milliseconds |
| MSSQL | Max Cpu Time | MSSQL_MAX_CPU_TIME | 'Returns Maximum CPU Time in ms - (Maximum CPU time, reported in microseconds (but only accurate to milliseconds), that this plan has ever consumed during a single execution / 1000 ).' | Milliseconds |
| MSSQL | Number Of Execs | MSSQL_NUMBER_OF_EXECS | Number of times that the plan has been executed since it was last compiled. | Count |
| MSSQL | Total Physical Reads | MSSQL_TOTAL_PHYSICAL_READS | Total number of physical reads performed by executions of this plan since it was compiled. | Count |
| MSSQL | Last Physical Reads | MSSQL_LAST_PHYSICAL_READS | Number of physical reads performed the last time the plan was executed. | Count |
| MSSQL | Min Physical Reads | MSSQL_MIN_PHYSICAL_READS | Minimum number of physical reads that this plan has ever performed during a single. | Count |
| MSSQL | Max Physical Reads | MSSQL_MAX_PHYSICAL_READS | Maximum number of physical reads that this plan has ever performed during a single. | Count |
| MSSQL | Last Logical Reads | MSSQL_LAST_LOGICAL_READS | Number of logical reads performed the last time the plan was executed. | Count |
| MSSQL | Min Logical Reads | MSSQL_MIN_LOGICAL_READS | Minimum number of logical reads that this plan has ever performed during a single execution. | Count |
| MSSQL | Max Logical READS | MSSQL_MAX_LOGICAL_READS | Maximum number of logical reads that this plan has ever performed during a single execution. | Count |
| MSSQL | Total Logical Writes | MSSQL_TOTAL_LOGICAL_WRITES | Total number of logical writes performed by executions of this plan since it was compiled. | Count |
| MSSQL | Last Logical Writes | MSSQL_LAST_LOGICAL_WRITES | Number of logical writes performed the last time the plan was executed. | Count |
| MSSQL | Min Logical WRITES | MSSQL_MIN_LOGICAL_WRITES | Minimum number of logical writes that this plan has ever performed during a single execution. | Count |
| MSSQL | Max Logical WRITES | MSSQL_MAX_LOGICAL_WRITES | Maximum number of logical writes that this plan has ever performed during a single execution. | Count |
| MSSQL | Plan Generation Num | MSSQL_PLAN_GENERATION_NUM | A sequence number that can be used to distinguish between instances of plans after a recompile. | Count |
| MSSQL | Creation Time | MSSQL_CREATION_TIME | The time when the entity was created. | Characters |
| MSSQL | Last Active Time | MSSQL_LASTACTIVETIME | Last time at which the plan started executing. | Characters |
| MSSQL | Db name | MSSQL_DB_NAME | The name of the database. | Characters |
| MSSQL | Object Id | MSSQL_OBJECT_ID | ID of object. Is NULL for ad hoc and prepared SQL statements. | Count |
| MSSQL | last Cpu Time | MSSQL_LAST_CPU_TIME | 'CPU time, that was consumed the last time the plan was executed.' | Milliseconds |
| MSSQL | Avg Physical Reads | MSSQL_AVG_PHYSICAL_READS | Average number of physical reads performed by executions of this plan since it was compiled. | Count |
| MSSQL | AVG Logical Reads | MSSQL_AVG_LOGICAL_READS | Average number of logical reads performed by executions of this plan since it was compiled. | Count |
| MSSQL | Avg Logical Writes | MSSQL_AVG_LOGICAL_WRITES | Average number of logical writes performed by executions of this plan since it was compiled. | Count |
| MSSQL | Object Name | MSSQL_OBJECT_NAME | Returns the database object name. | Characters |
| MSSQL | Hash Value | MSSQL_MSSQL_HASH_VALUE | Hash value of the parent statement in the library cache. | Count |
| MSSQL | Query Plan Hash | MSSQL_QUERY_PLAN_HASH | Binary hash value calculated on the query execution plan and used to identify similar query execution plans. You can use query plan hash to find the cumulative cost of queries with similar execution plans. | Characters |
| MSSQL | Component Properties | Component_Properties | The properties of a component such as its version and configuration. | Text |
| MSSQL | File Watch | FILE_WATCH | Monitors file changes in a directory or a specific file. | Text |
| MSSQL | Page Compression Attempts | Page compression attempts/sec | Total number of attempts to compress a page. | Count |
| MSSQL | Pages Compressed | Pages compressed/sec | Total number of pages that were successfully compressed. | Count |
| MSSQL | Commit Table Entries | Commit table entries | Total number of pages that were successfully compressed. | Count |
| MSSQL | Tracked Transactions | Tracked transactions/sec | Number of committed transactions recorded in the commit table for the database. | Count |
| MSSQL | Write Transactions | Write Transactions/sec | Number of transactions that wrote to the database And committed in the last second. | Count |
| MSSQL | Guided Plan Executions | Guided plan executions/sec | Number of plan executions per second in which the query plan has been generated by using a plan guide. | Count |
| MSSQL | Misguided Plan Executions | Misguided plan executions/sec | Number of plan executions per second in which a plan guide could not be honored during plan generation. The plan guide was disregarded And normal compilation was used to generate the executed plan. | Count |
| MSSQL | Tempdb Rowset Id | Tempdb rowset id | Number of duplicate tempdb rowset id generated | Count |
| MSSQL | Tempdb Recovery Unit Id | Tempdb recovery unit id | Number of duplicate tempdb recovery unit id generated. | Count |
| MSSQL | Shrink Data Movement Bytes | Shrink Data Movement Bytes/sec | Amount of data being moved per second by autoshrink operations or DBCC SHRINKDATABASE or DBCC SHRINKFILE statements. | Count |
| MSSQL | Connection Reset | Connection Reset/sec | Determines whether the database connection is reset when being drawn from the pool. | Count |