Command unknown: plugin_bookcreator_addtobook
products:promonitor:6.8:monitorsguide:mssql:ms-sqlperformances

MS-SQL Performances

Purpose

  • Most of the indicators that provide the information needed are operating system counters, especially those that deal with CPU activity, memory, paging, and the network interface. In SQL Server, you should also monitor connections, transactions, and locks.
  • This monitor allows to select the perfomance indicators which are important to monitor

Monitored performances include :

  • Average latch wait time (ms)
  • Average wait time (ms)(Key, Object, Page)
  • Buffer cache hit ratio
  • Compilations per second
  • Deadlocks per second (Key, Object, Page)
  • Latch waits per second
  • Lazy writes per second
  • Logins per second
  • Lock requests per second (Key, Object, Page)
  • Lock timeouts per second (Key, Object, Page)
  • Lock waits per second (Key, Object, Page)
  • Lock wait time (ms) (Key, Object, Page)
  • Logouts per second
  • Longest transaction running time
  • Page life expectancy
  • Pages read per second
  • Recompilations per second
  • Table lock escalations per second
  • Total latch wait time (ms)
  • User connections
  • Worktables from cache ratio

Configuration hints

Surveillance table:

  • This is a table of rules that you can use to configure and customize the configuration.
  • Each line of the table will define a rule of monitoring.
  • You can combine multiple rules to cover different cases.
  • Within a rule, you can configure the SQL Server performance counter you want to monitor and the selected performance threshold

Performance feature :
Select the specific SQL server performance you want to monitor (see below)

Threshold:

  • Use the multi-threshold syntax to set multiple threshold/severity associations: G2W:40 W2M:30 M2C:5 (Green To Warning, Warning To Major, etc…), expressed in the unit of measure of the performance selected
  • An alarm of the corresponding severity will be sent if performance counter value has been monitored being lower or higher (depending on the selected performance) threshold set.
  • Set 0 in the field if unused

Surveillance table

ParameterDescription
ActiveUse this field to activate or deactivate a line of configuration.
Performance featureSelect the SQL server performance you want to monitor
ThresholdThe threshold for the selected performance You can use the multi threshold syntax (i.e. : G2W:40 W2C:5) . Notice that values expressed in this field will vary depending on the performance.
Auto clearIf checked, the alarm will be cleared as soon as the alarm condition is not met anymore.
Alarm tagThis field allows to add custom text within the alarm message. %MSG% variable will contain the actual generated message and can be used such as: “my_prefix %MSG% my_suffix”. By default, tag will be used as prefix.
AlarmIf checked, this line of surveillance will be used for alarm generation.
MetricIf checked, this line of surveillance will be used for metric generation.
ReportIf checked, this line of surveillance will used for showing threshold and severity in the daily report

Examples

ActivePerformance featureThresholdAuto clearAlarm tagAlarmMetricReport
trueBuffer cache hit ratioG2W:95 W2C:80true truetruetrue

Effect : For this rule, SQL server - Buffer cache hit ratio performance counter will be monitored

A WARNING alarm is sent if Buffer cache hit ratio is 95% or less, a CRITICAL alarm if 80% or less.

Generated metrics

metricIdmetricUnitmetricTargetmetricDescription
MSSQL_DATABASE_PERF_AVG_LATCH_WAIT_TIME_MSMillisecond[SQL Server performance name]fetched value of performance
MSSQL_DATABASE_PERF_AVG_WAIT_TIME_MS_KEYMillisecond[SQL Server performance name]fetched value of performance
MSSQL_DATABASE_PERF_AVG_WAIT_TIME_MS_OBJECTMillisecond[SQL Server performance name]fetched value of performance
MSSQL_DATABASE_PERF_AVG_WAIT_TIME_MS_PAGEMillisecond[SQL Server performance name]fetched value of performance
MSSQL_DATABASE_PERF_BUFFER_CACHE_HIT_RATIOPercent[SQL Server performance name]fetched value of performance
MSSQL_DATABASE_PERF_COMPILATIONS_SECSecond[SQL Server performance name]fetched value of performance
MSSQL_DATABASE_PERF_DEADLOCKS_PER_SEC_KEYSecond[SQL Server performance name]fetched value of performance
SSQL_DATABASE_PERF_DEADLOCKS_PER_SEC_OBJECTSecond[SQL Server performance name]fetched value of performance
MSSQL_DATABASE_PERF_DEADLOCKS_PER_SEC_PAGESecond[SQL Server performance name]fetched value of performance
MSSQL_DATABASE_PERF_LATCH_WAITS_PER_SECSecond[SQL Server performance name]fetched value of performance
MSSQL_DATABASE_PERF_LAZY_WRITES_PER_SECsecond[SQL Server performance name]fetched value of performance
MSSQL_DATABASE_PERF_LOGINS_PER_SECSecond[SQL Server performance name]fetched value of performance
MSSQL_DATABASE_PERF_LOCK_REQUESTS_PER_SEC_KEYSecond[SQL Server performance name]fetched value of performance
MSSQL_DATABASE_PERF_LOCK_REQUESTS_PER_SEC_OBJECTSecond[SQL Server performance name]fetched value of performance
MSSQL_DATABASE_PERF_LOCK_REQUESTS_PER_SEC_PAGESecond[SQL Server performance name]fetched value of performance
MSSQL_DATABASE_PERF_LOCK_TIMEOUTS_PER_SEC_KEYSecond[SQL Server performance name]fetched value of performance
MSSQL_DATABASE_PERF_LOCK_TIMEOUTS_PER_SEC_OBJECTSecond[SQL Server performance name]fetched value of performance
MSSQL_DATABASE_PERF_LOCK_TIMEOUTS_PER_SEC_PAGESecond[SQL Server performance name]fetched value of performance
MSSQL_DATABASE_PERF_LOCK_WAITS_PER_SEC_KEYSecond[SQL Server performance name]fetched value of performance
MSSQL_DATABASE_PERF_LOCK_WAITS_PER_SEC_OBJECTSecond[SQL Server performance name]fetched value of performance
MSSQL_DATABASE_PERF_LOCK_WAITS_PER_SEC_PAGESecond[SQL Server performance name]fetched value of performance
MSSQL_DATABASE_PERF_LOCK_WAIT_TIME_MS_KEYMillisecond[SQL Server performance name]fetched value of performance
MSSQL_DATABASE_PERF_LOCK_WAIT_TIME_MS_OBJECTMillisecond[SQL Server performance name]fetched value of performance
MSSQL_DATABASE_PERF_LOCK_WAIT_TIME_MS_PAGEMillisecond[SQL Server performance name]fetched value of performance
MSSQL_DATABASE_PERF_LOGOUTS_PER_SECSecond[SQL Server performance name]fetched value of performance
MSSQL_DATABASE_PERF_LONGEST_TRANS_RUNNING_TIMEMilliseconds[SQL Server performance name]fetched value of performance
MSSQL_DATABASE_PERF_PAGE_LIFE_EXPECTANCYSecond[SQL Server performance name]fetched value of performance
MSSQL_DATABASE_PERF_PAGES_READ_PER_SECSecond[SQL Server performance name]fetched value of performance
MSSQL_DATABASE_PERF_RECOMPILATIONS_SECSecond[SQL Server performance name]fetched value of performance
MSSQL_DATABASE_PERF_TABLE_LOCK_ESCALATIONS_PER_SECSecond[SQL Server performance name]fetched value of performance
MSSQL_DATABASE_PERF_TOTAL_LATCH_WAIT_TIME_MSMillisecond[SQL Server performance name]fetched value of performance
MSSQL_DATABASE_PERF_USER_CONNECTIONSNumber[SQL Server performance name]fetched value of performance
MSSQL_DATABASE_PERF_WORKTABLES_FROM_CACHE_RATIOPercent[SQL Server performance name]fetched value of performance
/home/clients/8c48b436badcd3a0bdaaba8c59a54bf1/wiki-web/data/pages/products/promonitor/6.8/monitorsguide/mssql/ms-sqlperformances.txt · Last modified: 2022/10/25 11:08 by rbariou