60
mysql Guide v1.4 series CA Unified Infrastructure Management

mysql-1.4

Embed Size (px)

DESCRIPTION

Mysql CA

Citation preview

Page 1: mysql-1.4

mysql Guide v1.4 series

CA Unified Infrastructure Management

Page 2: mysql-1.4

Copyright Notice

This online help system (the "System") is for your informational purposes only and is subject to change or withdrawal by CA at any time.

This System may not be copied, transferred, reproduced, disclosed, modified or duplicated, in whole or in part, without the prior written consent of CA. This System is confidential and proprietary information of CA and protected by the copyright laws of the United States and international treaties. This System may not be disclosed by you or used for any purpose other than as may be permitted in a separate agreement between you and CA governing your use of the CA software to which the System relates (the “CA Software”). Such agreement is not modified in any way by the terms of this notice.

Notwithstanding the foregoing, if you are a licensed user of the CA Software you may make one copy of the System for internal use by you and your employees, provided that all CA copyright notices and legends are affixed to the reproduced copy.

The right to make a copy of the System is limited to the period during which the license for the CA Software remains in full force and effect. Should the license terminate for any reason, it shall be your responsibility to certify in writing to CA that all copies and partial copies of the System have been destroyed.

TO THE EXTENT PERMITTED BY APPLICABLE LAW, CA PROVIDES THIS SYSTEM “AS IS” WITHOUT WARRANTY OF ANY KIND, INCLUDING WITHOUT LIMITATION, ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT. IN NO EVENT WILL CA BE LIABLE TO YOU OR ANY THIRD PARTY FOR ANY LOSS OR DAMAGE, DIRECT OR INDIRECT, FROM THE USE OF THIS SYSTEM, INCLUDING WITHOUT LIMITATION, LOST PROFITS, LOST INVESTMENT, BUSINESS INTERRUPTION, GOODWILL, OR LOST DATA, EVEN IF CA IS EXPRESSLY ADVISED IN ADVANCE OF THE POSSIBILITY OF SUCH LOSS OR DAMAGE.

The manufacturer of this System is CA.

Provided with “Restricted Rights.” Use, duplication or disclosure by the United States Government is subject to the restrictions set forth in FAR Sections 12.212, 52.227-14, and 52.227-19(c)(1) - (2) and DFARS Section 252.227-7014(b)(3), as applicable, or their successors.

Copyright © 2014 CA. All rights reserved. All trademarks, trade names, service marks, and logos referenced herein belong to their respective companies.

Legal information on third-party and public domain software used in this product is documented in the Third-Party Licenses and Terms of Use (http://docs.nimsoft.com/prodhelp/en_US/Library/Legal.html).

Page 3: mysql-1.4

Contact CA

Contact CA Support

For your convenience, CA Technologies provides one site where you can access the information that you need for your Home Office, Small Business, and Enterprise CA Technologies products. At http://ca.com/support, you can access the following resources:

■ Online and telephone contact information for technical assistance and customer services

■ Information about user communities and forums

■ Product and documentation downloads

■ CA Support policies and guidelines

■ Other helpful resources appropriate for your product

Providing Feedback about Product Documentation

Send comments or questions about CA Technologies product documentation to [email protected].

To provide feedback about general CA Technologies product documentation, complete our short customer survey which is available on the support website at http://ca.com/docs.

Page 4: mysql-1.4
Page 5: mysql-1.4

Contents 5

Contents

Chapter 1: mysql 1.4 7

mysql Overview ............................................................................................................................................................ 8

Installation Notes ....................................................................................................................................................... 12

Chapter 2: mysql Probe Deployment 17

Prerequisites .............................................................................................................................................................. 17

Supported Platforms .................................................................................................................................................. 17

System Requirements ................................................................................................................................................ 18

Software Requirements ............................................................................................................................................. 18

Monitoring System Requirements ............................................................................................................................. 18

Probe Deployment Information ................................................................................................................................. 18

Chapter 3: mysql Configuration 19

Probe Defaults ............................................................................................................................................................ 19

Probe Configuration Interface Installation for mysql ................................................................................................. 19

Probe Configuration ................................................................................................................................................... 19

The Setup Tab ..................................................................................................................................................... 20

The Connections Tab ........................................................................................................................................... 23

The Profiles Tab ................................................................................................................................................... 25

The Templates Tab .............................................................................................................................................. 29

The Status Tab ..................................................................................................................................................... 30

Edit a Checkpoint ................................................................................................................................................ 32

Checkpoints metrics ............................................................................................................................................ 37

String Matching Methods ................................................................................................................................... 48

Chapter 4: QoS Threshold Metrics 49

QoS Metrics ................................................................................................................................................................ 49

Alert Metrics Default Settings .................................................................................................................................... 54

Page 6: mysql-1.4
Page 7: mysql-1.4

Chapter 1: mysql 1.4 7

Chapter 1: mysql 1.4

This description applies to mysql probe version 1.4x.

This section contains the following topics:

mysql Overview (see page 8) Documentation Changes (see page 11) Installation Notes (see page 12)

Page 8: mysql-1.4

mysql Overview

8 mysql Guide

mysql Overview

The MySQL Server Monitoring (mysql) probe constantly monitors the internal performance and space allocation throughout the MySQL database.The mysql probe will extract vital information about your MySQL Servers using MySQL API calls as well as selected SQLs. The information is presented to the database-administrator as alarms and/or as a report. An extensive range of checkpoints can be selected and individually scheduled to meet the needs of specific monitoring requirements.

The mysql probe will extract vital information about your MySQL Servers using MySQL API calls as well as selected SQLs. The information is presented to the database-administrator as alarms and/or as a report.

The information that is extracted and monitored includes, but is not limited to, the following parameters:

■ Database state / status

■ Number of databases available

■ Number of bytes sent from all clients

■ Number of bytes received from all clients

■ Configured max memory per thread buffers

■ Configured max shared buffers

■ Total memory configured

■ Number of connection attempts

■ Number of successful connections made

■ Number of refused connections

■ Percentage of connections refused

■ Connections that were established successfully but got aborted abruptly.

■ Current number of open connections

■ Percentage of maximum allowed connections in use.

■ Current number of running threads

■ Highest number of concurrent open connections since last restart

■ Highest percentage of maximum allowed connections since last restart.

■ Percentage of cache in use.

■ Number of key block read requests.

■ Number of key blocks read from disk.

■ Percentage of reads from cache instead of from disk.

■ Number of key block write requests.

Page 9: mysql-1.4

mysql Overview

Chapter 1: mysql 1.4 9

■ Number of key block writes to disk.

■ Ratio of disk writes to all write requests.

■ Percentage of cache in use.

■ Percentage of reads from cache instead of from disk.

■ Percentage of write requests which had to wait.

■ Number of latched pages in cache.

■ Table locks acquired immediately.

■ Table lock waits.

■ Percentage of lock requests that had to be waited.

■ The number of row locks currently being waited.

■ Average wait time for a row lock.

■ Percentage of cache writes that had to wait.

■ Total size of all logs files as a percentage of the InnoDB cache size.

■ Current number of threads cached.

■ Number of threads created to handle connections.

■ Percentage of threads re-used from cache.

■ Number of open tables.

■ Percentage of open tables that are in cache.

■ Number of tables opened not in cache.

■ Percentage of cache in use.

■ Percent of Fragmentation in cache.

■ The number of queries registered in the query cache.

■ The number of non-cached queries (not cache able, or not cached due to the cache type).

■ The number of queries added to the query cache.

■ The number of query cache hits.

■ Number of queries that were inserted into the query cache, but subsequently got pruned.

■ Ratio of pruned queries to total inserted.

■ Cache hit rate.

■ Ratio of hits to total inserted.

■ Number of temporary tables created in memory.

■ Number of temporary tables created on disk.

Page 10: mysql-1.4

mysql Overview

10 mysql Guide

■ Percentage of temp tables created on disk.

■ Number of slow launch threads.

■ Slow Queries Enabled.

■ Min time for a query to be considered slow.

■ Number of slow queries.

■ Number of sorts done using ranges.

■ Number of sorts that were done by scanning the table.

■ Temporary files created because of insufficient sort buffer size.

■ Percentage of rows that were accessed via full table scan.

■ Number of times a full table was read for a SELECT.

and so on.

Page 11: mysql-1.4

mysql Overview

Documentation Changes 11

Documentation Changes

This table describes the version history for this document.

Version Date What's New?

1.4 February 2013 ■ Added Probe Defaults topic.

■ Added support for reading alarm tokens from configuration.

■ Added information for Debian and Ubuntu support for the probe.

Related Documentation

Documentation for other versions of the mysql probe

The Release Notes for the mysql probe

Monitor Metrics Reference Information for CA Unified Infrastructure Management Probes (http://docs.nimsoft.com/prodhelp/en_US/Probes/ProbeReference/index.htm)

Page 12: mysql-1.4

Installation Notes

12 mysql Guide

Installation Notes ■ Install the package into your local archive.

■ Drop the package from your local archive onto the targeted robot(s).

■ Double-click the probe for initial configuration.

The mysql monitoring probe monitors local or remote MySQL servers.

This probe will periodically scan through a configurable set of monitoring profiles and apply checks to the local or remote MySQL servers. It is possible to adapt the configuration according to specific monitoring needs/requirements. The probe does not modify anything in MySQL servers.

The following information is extracted and monitored:

■ GENERAL

■ Available

■ Databases

■ Bytes Received

■ Bytes Sent

■ Max Per-Thread Memory

■ Max Shared Memory

■ Configured Max Total Memory

■ CONNECTION HISTORY

■ Connection Attempts

■ Successful Connections

■ Refused Connections

■ Connection Refusal Rate

■ Aborted Connections

■ CONNECTIONS

■ Connections

■ Connection Usage Rate

■ Running Threads

■ Peak Open Connections

■ Peak Usage Rate

■ MYISAM KEY CACHE

■ Cache Hit Rate

Page 13: mysql-1.4

Installation Notes

Documentation Changes 13

■ Cache Usage Rate

■ Read Requests

■ Reads From Disk

■ Write Requests

■ Writes To Disk

■ Disk: Total Write Ratio

■ INNODB CACHE

■ Cache Usage Rate

■ Cache Hit Rate

■ Cache Write Waits Rate

■ Latched Pages

■ TABLE LOCKS

■ Locks Acquired Immediately

■ Lock Waits

■ Lock Contention Rate

■ INNODB ROW LOCKS

■ Lock Waits

■ Average Wait Time

■ INNODB LOGS

■ Log Waits Rate

■ Total Size : Cache Size Percent

■ THREAD CACHE

■ Threads

■ Threads Created For Connections

■ Cache Hit Rate

■ TABLE CACHE

■ Tables Open

■ Tables In Cache Rate

■ Table Cache Misses

■ QUERY CACHE

■ Cache Usage Rate

■ Queries In Cache

■ Queries Not Cached

Page 14: mysql-1.4

Installation Notes

14 mysql Guide

■ Queries Inserted To Cache

■ Cache Hits

■ Queries Pruned From Cache

■ Pruned as percent of Inserts

■ Cache Hit Rate

■ TEMPORARY TABLES

■ Temp Tables Created

■ Temp Tables Created On Disk

■ Disk: Total Ratio

■ BINARY LOG

■ Transactions Used Cache

■ Transactions Saved In Temp File

■ Transactions Saved In Temp File Percent

■ SLOW LAUNCH THREADS

■ Slow Launch Threads

■ SLOW QUERIES

■ Enabled

■ Min Long Query Time

■ Slow Queries

■ SORT BUFFERS

■ Sort Range

■ Sort Scan

■ Temp Files

■ FULL TABLE SCANS

■ Full Table Scan Rate

■ Selects Requiring Full Table Scans

■ Full Table Scans For Joins

■ STATEMENTS

■ All Statements

■ Select Percent

■ Insert Percent

■ Update Percent

■ Delete Percent

Page 15: mysql-1.4

Installation Notes

Documentation Changes 15

■ Replace Percent

■ Commits

■ Rollback: Commit ratio

■ REPLICATION

■ Slave Running

■ Slave I/O Running

■ Slave SQL running

■ Seconds behind master

■ Last Error Number

■ Slave Retried Transaction Count

■ Open temp tables

■ Master Log Read Position

■ Relay Master Log File Position

■ Relay Log File Position

■ Size

■ Table Size

Page 16: mysql-1.4
Page 17: mysql-1.4

Chapter 2: mysql Probe Deployment 17

Chapter 2: mysql Probe Deployment

This section contains the system requirements and deployment information for the mysql probe.

This section contains the following topics:

Prerequisites (see page 17) Supported Platforms (see page 17) System Requirements (see page 18) Software Requirements (see page 18) Monitoring System Requirements (see page 18) Probe Deployment Information (see page 18)

Prerequisites 1. The mysql user configured in probe must have access to the information_schema

database.

2. The mysql user configured in probe must have access to the following queries on the mysql server.

■ SHOW GLOBAL STATUS

■ SHOW SLAVE STATUS

■ SHOW VARIABLES

■ SHOW DATABASES

■ SELECT TABLE_NAME, AVG_ROW_LENGTH, DATA_LENGTH, MAX_DATA_LENGTH, INDEX_LENGTH, DATA_FREE, TABLE_SCHEMA FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE = 'BASE TABLE' AND MAX_DATA_LENGTH > 0 ORDER BY TABLE_SCHEMA ASC

Supported Platforms

Refer to the Compatibility Support Matrix for the latest information about supported platforms. See also the Support Matrix for Probes for more specific information about the probe.

Page 18: mysql-1.4

System Requirements

18 mysql Guide

System Requirements

The mysql probe should be installed on systems with the following minimum resources:

■ Memory: 2-4GB of RAM. Probe's OOB configuration requires 256MB of RAM'

■ CPU: 3GHz dual-core processor, 32-bit or 64-bit

Software Requirements

The mysql probe requires the following software environment:

■ Nimsoft Monitor Server 7.1 to 7.6 or CA Unified Infrastructure Management 8.0 or later

■ Robot 6.5 or later

Monitoring System Requirements

The mysql probe monitors MYSQL servers using MYSQL API calls as well as selected SQLs to extract vital information about MYSQL servers.

Probe Deployment Information

There are three ways to distribute archive packages. You can distribute the package within the web-based Admin Console (for supported probes), from within Infrastructure Manager, or use the standalone Distribution application. See Probe Deployment for more information on deploying probes.

Page 19: mysql-1.4

Chapter 3: mysql Configuration 19

Chapter 3: mysql Configuration

This section describes the configuration concepts and procedures for setting up the mysql probe.

This section contains the following topics:

Probe Defaults (see page 19) Probe Configuration Interface Installation for mysql (see page 19) Probe Configuration (see page 19)

Probe Defaults

At the time of deploying a probe for the first time on robot, some default configuration will be deployed. For this you have to drag and drop the test template to the profile. These probe defaults could be Alarms, QoS, Profiles and so on which save time to configure the default settings. These probe defaults will be seen on a fresh install, that is no instance of that probe is already available on that robot in activated or deactivated state.

Probe Configuration Interface Installation for mysql

The probe configuration interface is automatically downloaded and installed by the Infrastructure Manager when the probe is deployed on a robot.

Probe Configuration

Initial configuration of the mysql probe is done by using the GUI, defining connections and profiles for monitored servers. The probe may be running locally on the database server, or it may be configured to run as a remote client. Every profile will run in its own thread.

Notes:

■ All windows containing lists are resizable.

■ You click the Apply button to activate any configuration modifications done.

Page 20: mysql-1.4

Probe Configuration

20 mysql Guide

The Setup Tab

This property-sheet will set the general run-time parameters regarding the mysql probe. When the GUI is opened, Setup tab is displayed by default. It contains two sub tabs - General (see page 20) and Message pool (see page 21).

The General Tab

The fields in the above dialog are explained below:

Generate status only

Instructs the probe to only generate status, not to issue an alarm when a threshold is breached and also not to send any QoS data. Select the Status tab to see the status for the different checkpoints.

Alarm severity filter

Sets a filter on which severity levels to be considered as alarms. The mysql probe is capable of checking many areas of the mysql databases. Some events that are generated are vital and key to the performance and availability of the database.

Page 21: mysql-1.4

Probe Configuration

Chapter 3: mysql Configuration 21

As a database administrator, you may want to pass the important events on to the operations centre or helpdesk, so the event can trigger pagers, email, and so on. This field will consider the events matching the selected severity level and higher as alarms and pass these on whenever the Generate status only option is unchecked.

If you, for example, set this to be major, then only messages with severity major and upward are considered as alarms.

Status Auto Update

Allows you to activate/deactivate the Status Auto-Update functionality. This parameter (number of seconds) specifies the automatic refresh interval of the Status Window on the Status tab. Setting this parameter to a value higher than 0 and then selecting a profile on the Status tab, the status will be automatically updated every x seconds. The checkpoints of the selected profile will be displayed until you select another profile.

Note: This parameter is a "dialog" value - it means it is not saved in the configuration file, but in the machine running the dialog (same as for example widows size).

Log Size

Sets the size of the probe’s log file to which probe-internal log messages are written. The default size is 100 KB. When this size is reached, the contents of the file are cleared.

Log Level

Sets the level of details written to the log file. Log as little as possible during normal operation, to minimize disk consumption.

The Message Pool Tab

This tab contains a list of all alarm messages available. You select messages from this list when editing the properties for a checkpoint.

Page 22: mysql-1.4

Probe Configuration

22 mysql Guide

Right-clicking in the list allows you to add, edit, copy or delete messages.

Follow these steps to define a message using the Message pool:

1. Select the Message pool tab, right-click in the list, and select the New option.

The New message dialog appears.

2. Specify a name of the new message and click OK.

Tips: Use the name of the checkpoint for which you create the alarm message as name. That makes it easier to find the alarm message when selecting an alarm message in the properties dialog for the checkpoint.

The Edit message [message name] dialog appears.

3. Select the Checkpoint for which you create the alarm message in the drop-down list,

All variables available for that check-point will be listed in the right part of the dialog, in the Variables box.

4. Type the message in the Message text box and pick the variables you need.

5. Click OK when finished.

The new message now appears in the message pool.

Page 23: mysql-1.4

Probe Configuration

Chapter 3: mysql Configuration 23

The Connections Tab

This list contains various connections to instances that the mysql probe will monitor. You need to specify user name, password and service name you want to use to connect to the instance. The password information is encrypted and placed into the configuration file. A connection can be used by more than one profile.

The list contains one predefined connection that you may modify to your preferences. You may add, edit, delete, and copy connections.

Selecting the connection and choose Edit from the right pop up menu opens the connection property window for editing.

Page 24: mysql-1.4

Probe Configuration

24 mysql Guide

The fields in the above dialog are explained below:

Description

Indicates the short description of the connection.

User Name

Indicates user-Id with authorization to read, execute, and show queries.

Note: You must have administrative privilege on the MySQL server to create a connection.

Password

Indicates valid password.

Host name

Indicates name /IP of the MySQL Server

Select option

Indicates the option on which MySQL server is configured for accepting connections. Valid options are TCP, SOCKET, PIPE & MEMORY.

Option name/path

If option selected is PIPE/MEMORY, specify the name of named pipe/shared memory section. If option selected is SOCKET, specify the full path of the socket file.

Port number

Indicates the port on which the MySQL server accepts client connections. Specifying 0 will indicate to use the default port number.

Retry attempts

Indicates number of attempts the probe should try to repeat connection in case of failure. "0" means only the initial connection will be done.

Retry delay

Indicates the time the probe will wait between two connection attempts.

Test

Tests if the connection can be made. If success, it will return the instance name and its version number. If not, an Mysql error message will be returned.

Page 25: mysql-1.4

Probe Configuration

Chapter 3: mysql Configuration 25

The Profiles Tab

The list contains a sample profile that you may modify to your preferences. Every profile will run as a separate thread, and multiple profiles can be used to monitor one instance. This way the probe can be configured to deploy available resources the best way and allows independent monitoring of several instances simultaneously.

Icons in the profile list

■ Green icon in the profile line means the profile is active and running.

■ Yellow icon means the profile is active but suspended (the ‘suspend’ /’resume’ button in the profile properties dialog allows stopping / starting profile monitoring dynamic, without deactivating /activating the probe).

■ Black icon shows the profile is inactive.

You may add, edit, delete, and copy profiles. Selecting the profile and choose Edit from the right pop-up menu, opens the profile property window for editing.

Page 26: mysql-1.4

Probe Configuration

26 mysql Guide

The suspend/resume commands allows stopping / starting profile monitoring dynamic, without deactivating /activating the probe.

The upper part of the window shows general profile properties and defaults. At the bottom, you will find a list of available checkpoints.

The fields in the above dialog are explained below:

Description

Provides short description of the profile.

Heartbeat

Defines the interval, at which all profile checkpoints schedules will be tested and trigger eventual checkpoint execution. This number should be common denominator to all used check interval values. The higher the value the lower is the profile overhead.

Page 27: mysql-1.4

Probe Configuration

Chapter 3: mysql Configuration 27

Connection

Indicates connection used in this profile. It has to be defined in Connections dialog before creating a profile.

Check interval

Indicates default value for check interval in the profile. Will be used if nothing else is defined in the checkpoint and overwrites the default checkpoint list setting.

Clear message

Indicates message name for the alarm.

Profile timeout

Defines the maximum processing time for all checkpoints in the profile. If this timeout is reached, the interval processing is finished and the probe waits for next heartbeat to evaluate any checkpoint schedules. Alarm message is issued.

Message

Defines message name used for profile timeout alarm.

Timeout Severity

Specifies severity for timeout messages.

Connection Timeout

Specifies the timeout set for client to break connection with the server if there is no activity.

Alarm Source

Allows you override the source name of the alarm.

Suspended/Resumed

This indicator is green when the profile is activated. The indicator changes to yellow when the profile is suspended and to black when deactivated.

Profile checkpoints

At the bottom, you will find a list of available checkpoints. When defining a new profile, all checkpoints available (listed under the Checkpoints tab) will be listed here. Select the checkpoints you want for your new profile. The global and default checkpoint settings will be used, unless you modify the settings locally for your profile.

Note on checkpoint types

Defining a profile, you can use two different strategies how to handle Checkpoints in a profile. You can decide to use checkpoint templates dynamic, which means that the checkpoints are defined globally (under the Templates tab) and represent the default settings. Every time you change the template value, it will reflect on all profiles using dynamic templates strategy.

Page 28: mysql-1.4

Probe Configuration

28 mysql Guide

If you want to have specific settings valid just for one profile, you right-click the checkpoint in the list and select Change to Static.

Now you can double-click the checkpoint to modify the properties, and the settings will be valid for this profile only.

Note: Attempting to modify a template checkpoint in the Profile dialog without changing it to static as described above, you will get a warning as shown below:

Page 29: mysql-1.4

Probe Configuration

Chapter 3: mysql Configuration 29

Of course, there can be both "template" and "static" checkpoints mixed in one profile.

If a checkpoint is managed as static, the checkpoint name will appear in the list with a blue color, and it will be marked as static in the column Type.

Conclusion:

■ Static.

To manage the properties for a checkpoint locally, "change" the checkpoint to static in your profile before modifying it. When modified, the new settings will be valid for this profile only.

■ Template.

To edit the properties for a checkpoint template, double-click the checkpoint in the profile list or Templates tab. When modified, the new settings will be valid for all profiles, unless overruled by static settings in the profile.

See the section Editing a Checkpoint (see page 32) for a description of the checkpoint properties.

When deciding which checkpoints to activate/deactivate for a profile, see the section Checkpoint Description (see page 38) for a description of the different checkpoints.

The Templates Tab

The list contains the predefined set of checkpoints that you may use in your profiles. These checkpoints can be modified to your preferences.

Page 30: mysql-1.4

Probe Configuration

30 mysql Guide

By default, most checkpoints are active with a reasonable default threshold value. The checkpoint properties may be used in a profile either dynamic, using the template values, or they can be added to the profile and managed static in the profile.

■ Static

To edit the properties for a checkpoint locally for a profile, right-click the profile in the Checkpoints list in the Profile dialog and change it to static. Then double-click the checkpoint to modify it. When modified, the new settings will be valid for this profile only.

■ Template

To edit the properties for a checkpoint template, double-click the checkpoint in the profile list or Templates tab. When modified, the new settings will be valid for all profiles, unless overruled by static settings in the profile.

See the section Editing a Checkpoint (see page 32) for a description of the checkpoint properties.

The Status Tab

Page 31: mysql-1.4

Probe Configuration

Chapter 3: mysql Configuration 31

The status is presented in a hierarchal fashion, with a profile name nodes and one or more checkpoint nodes (only active checkpoints are considered here). The highest status is propagated. Select the checkpoint in the navigation tree (to your left) to bring up the corresponding events.

Changing the individual values for checkpoints:

The properties for an individual checkpoint object can also be modified here.

1. Select a profile and a monitored checkpoint in the left pane. Then double-click an object in the right pane.

2. If the object belongs to a template object, you will be warned that a modification will make the checkpoint static for the selected profile.

See the section Editing a Checkpoint (see page 32) for a description of the checkpoint properties.

Page 32: mysql-1.4

Probe Configuration

32 mysql Guide

Edit a Checkpoint

The status is presented in a hierarchal fashion with a profile name nodes and one or more checkpoint nodes (only active checkpoints are considered here). The highest status is propagated. Select the checkpoint in the navigation tree (to your left) to bring up the corresponding events.

Changing the individual values for checkpoints:

The properties for an individual checkpoint object can also be modified here. Select a profile and a monitored checkpoint in the left pane. Then double-click an object in the right pane.

If the object belongs to a template object, you will be warned that a modification will make the checkpoint static for the selected profile.

Page 33: mysql-1.4

Probe Configuration

Chapter 3: mysql Configuration 33

Page 34: mysql-1.4

Probe Configuration

34 mysql Guide

Page 35: mysql-1.4

Probe Configuration

Chapter 3: mysql Configuration 35

Thresholds

The list contains the predefined set of monitoring profiles that you may use in your profiles and that you can modify to your preferences. By default, most profiles are active with a reasonable default threshold value. The threshold values may be defined by modifying checkpoints in the respective profile. Every checkpoint has to have at least one threshold, but there can be additional thresholds defined.

The threshold identification consists of an object name (if applicable), like tablespace name, userid etc. and a threshold ID, numbered from 0. Threshold values have to be descending or ascending, depending on condition used in a checkpoint, starting with the highest severity threshold condition.

The fields in the above dialog are explained below:

Threshold object name

Indicates monitoring object name, if applicable or default.

Threshold value

Indicate the value used for threshold evaluation.

Current interval value

If invoked from the status report, it contains the last measured value.

Severity

Indicates severity of the alarm.

Message

Select the message to be used for threshold alarm.

Page 36: mysql-1.4

Probe Configuration

36 mysql Guide

Message Text

Defines the text of the message, containing variables, which will be replaced in run time. If the message text is changed from a profile list, you will be forced to create new message.

Variables

Indicates list of variables available in the checkpoint.

Schedules

If the schedules list is empty, the checkpoint will be executed in interval matter, 24 hours a day. Additional to it there can be defined number of schedules per checkpoints, which can define additional ‘rules’ to the check interval or ‘exceptions’ of it. ‘Rules’ and ‘exceptions’ cannot be mixed in one checkpoint.

In principle, a schedule is a definition of an execution period (or execution break if ‘exceptions’ used) with specified days, time from/to and date from/to values. Additional to it, if only Date from and Time from are defined, first execution can be defined. Run once will cause the checkpoint run only once a day in the defined period (unlike multiple times if Run interval used).

Page 37: mysql-1.4

Probe Configuration

Chapter 3: mysql Configuration 37

Checkpoints metrics

There are five kind of metrics used:

Count

Absolute number of events in the interval. It is calculated as delta between count at the beginning of the interval and at the end. In the first interval, counts are not checked because their interval value cannot be calculated. If there is a "total" value in the message, it means "since the start of the instance".

Gauge

Absolute number, describing the actual state of the system.

Ratio

Calculated percentage, using interval counts. In the first interval, it is calculated from total counts (as the interval count cannot be calculated).

Average

Calculated using interval counts. In the starting interval, it is calculated from absolute counts.

Status

Absolute value like ‘ONLINE’ etc.

Page 38: mysql-1.4

Probe Configuration

38 mysql Guide

Checkpoint Descriptions

■ available – status

Description: Able to make a connection to mysql server.

■ number_of_databases – gauge

Description: Number of databases.

■ bytes_sent – count

Description: The number of bytes sent from all clients.

Calculated as:

Bytes_sent

■ bytes_received – count

Description: The number of bytes received from all clients.

Calculated as:

Bytes_received

■ max_per_thread_memory – gauge

Description: Configured max memory per thread buffers.

Calculated as:

(read_buffer_size + read_rnd_buffer_size + sort_buffer_size + thread_stack + join_buffer_size + binlog_cache_size) * max_connections

■ max_shared_buffers – gauge

Description: Configured max shared buffers.

Calculated as:

innodb_buffer_pool_size + innodb_additional_mem_pool_size + innodb_log_buffer_size + key_bufer_size + query_cache_size

■ tot_memory_configured – gauge

Description: Total memory configured.

Calculated as:

((read_buffer_size + read_rnd_buffer_size + sort_buffer_size + thread_stack + join_buffer_size + binlog_cache_size) * max_connections) + (innodb_buffer_pool_size + innodb_additional_mem_pool_size + innodb_log_buffer_size + key_bufer_size + query_cache_size)

■ connections_attempted – count

Description: Number of connection attempts.

Calculated as:

Connections

Page 39: mysql-1.4

Probe Configuration

Chapter 3: mysql Configuration 39

■ connections_successful – count

Description: Number of successful connections made.

Calculated as:

Connections - Aborted_connects

■ connections_refused – count

Description: Number of refused connections.

Calculated as:

Aborted_connects

■ connection_refusal_rate – ratio

Description: Percentage of connections refused.

Calculated as:

Aborted_connects/Connections

■ connections_aborted – count

Description: Connections that were established successfully but got aborted abruptly.

Calculated as:

Aborted_clients

■ connections_count – gauge

Description: Current number of open connections.

Calculated as:

Threads_connected

■ connection_usage_rate – ratio

Description: Percentage of maximum allowed connections in use.

Calculated as:

Threads_connected/max_connections

■ running_threads – gauge

Description: Current number of running threads.

Calculated as:

Threads_running

■ peak_open_connections – gauge

Description: Highest number of concurrent open connections since last restart.

Calculated as:

Max_used_connections

Page 40: mysql-1.4

Probe Configuration

40 mysql Guide

■ connection_peak_usage_rate – ratio

Description: Highest percentage of maximum allowed connections since last restart.

Calculated as:

Max_used_connections/max_connections

■ myisam_cache_usage_rate – ratio

Description: Percentage of cache in use.

Calculated as:

1 - (Key_blocks_unused / (key_buffer_size / key_cache_block_size))

■ myisam_read_requests – count

Description: Number of key block read requests.

Calculated as:

Key_read_requests

■ myisam_reads_from_disk – count

Description: Number of key blocks read from disk.

Calculated as:

Key_reads

■ myisam_cache_hit_rate – ratio

Description: Percentage of reads from cache instead of from disk.

Calculated as:

1-(Key_reads / Key_read_requests)

■ myisam_write_requests – count

Description: Number of key block write requests.

Calculated as:

Key_write_requests

■ myisam_writes_to_disk – count

Description: Number of key block writes to disk.

Calculated as:

Key_writes

■ myisam_total_disk_write_ratio – ratio

Description: Ratio of disk writes to all write requests.

Calculated as:

Key_writes/Key_write_requests

Page 41: mysql-1.4

Probe Configuration

Chapter 3: mysql Configuration 41

■ innodb_cache_usage_rate – ratio

Description: Percentage of cache in use.

Calculated as:

1-(Innodb_buffer_pool_pages_free/Innodb_buffer_pool_pages_total)

■ innodb_cache_hit_rate – ratio

Description: Percentage of reads from cache instead of from disk.

Calculated as:

1 - (Innodb_buffer_pool_reads / Innodb_buffer_pool_read_requests)

■ innodb_cache_write_waits_rate – ratio

Description: Percentage of write requests which had to wait.

Calculated as:

Innodb_buffer_pool_wait_free/Innodb_buffer_pool_write_requests

■ innodb_latched_pages – gauge

Description: Number of latched pages in cache.

Calculated as:

Innodb_buffer_pool_pages_latched

■ table_locks_acquired_immediately – count

Description: Table locks acquired immediately.

Calculated as:

Table_locks_immediate

■ table_lock_waits – count

Description: Table lock waits.

Calculated as:

Table_locks_waited

■ table_lock_contention_rate – ratio

Description: Percentage of lock requests that had to be waited.

Calculated as:

Table_locks_waited / (Table_locks_waited + Table_locks_immediate)

■ innodb_lock_waits – count

Description: The number of row locks currently being waited.

Calculated as:

Innodb_row_lock_current_waits

■ innodb_avg_wait_time – gauge

Page 42: mysql-1.4

Probe Configuration

42 mysql Guide

Description: Average wait time for a row lock.

Calculated as:

Innodb_row_lock_time_avg

■ innodb_log_waits_rate – ratio

Description: Percentage of cache writes that had to wait.

Calculated as:

Innodb_log_waits/Innodb_log_write_requests

■ innodb_total_size_cache_size_rate – ratio

Description: Total size of all logs files as a percentage of the InnoDB cache size.

Calculated as:

(innodb_log_files_in_group*innodb_log_file_size) / innodb_log_buffer_size

■ thread_cache_number_of_threads – gauge

Description: Current number of threads cached.

Calculated as:

Threads_cached

■ thread_cache_threads_created_con – count

Description: Number of threads created to handle connections.

Calculated as:

Threads_created

■ thread_cache_hit_rate – ratio

Description: Percentage of threads re-used from cache.

1-Threads_created/Connections

■ cache_tables_open – gauge

Description: Number of open tables.

Calculated as:

Open_tables

■ table_cache_rate – ratio

Description: Percentage of open tables that are in cache.

Calculated as:

Open_tables-Opened_tables/open_tables

■ table_cache_misses – count

Description: Number of tables opened not in cache.

Calculated as:

Page 43: mysql-1.4

Probe Configuration

Chapter 3: mysql Configuration 43

Opened_tables

■ query_cache_usage_rate – ratio

Description: Percentage of cache in use.

Calculated as:

1-(Qcache_free_memory/query_cache_size)

■ queries_in_cache – gauge

Description: The number of queries registered in the query cache.

Calculated as:

Qcache_queries_in_cache

■ queries_not_cached – gauge

Description: The number of non-cached queries (not cache able, or not cached due to the cache type).

Calculated as:

Qcache_not_cached

■ queries_inserted_cache – gauge

Description: The number of queries added to the query cache

Calculated as:

Qcache_inserts

■ query_cache_hits – gauge

Description: The number of query cache hits.

Calculated as:

Qcache_hits

■ queries_pruned_from_cache – gauge

Description: Number of queries that were inserted into the query cache, but subsequently got pruned.

Calculated as:

Qcache_lowmem_prunes

■ query_cache_pruned_inserts_ratio – ratio

Description: Ratio of pruned queries to total inserted.

Calculated as:

Qcache_lowmem_prunes/Qcache_inserts

■ query_cache_hit_rate – ratio

Description: Cache hit rate.

Page 44: mysql-1.4

Probe Configuration

44 mysql Guide

Calculated as:

qcache_hits / (qcache_hits + com_select)

■ temp_tables_created – count

Description: Number of temporary tables created in memory.

Calculated as:

Created_tmp_tables

■ temp_tables_created_on_disk – count

Description: Number of temporary tables created on disk.

Calculated as:

Created_tmp_disk_tables

■ temp_tables_disk_total_ratio – ratio

Description: Percentage of temp tables created on disk.

Calculated as:

Created_tmp_disk_tables/Created_tmp_tables

■ slow_launch_threads – count

Description: Number of slow launch threads.

Calculated as:

Slow_launch_threads

■ slow_queries_enabled – status

Description: Slow Queries Enabled.

Calculated as:

log_slow_queries

■ slow_queries_min_time – gauge

Description: Min time for a query to be considered slow.

Calculated as :

long_query_time

■ slow_queries_no – count

Description: Number of slow queries.

Calculated as:

Slow_queries

■ sort_buffers_range – count

Description: Number of sorts done using ranges.

Calculated as:

Page 45: mysql-1.4

Probe Configuration

Chapter 3: mysql Configuration 45

sort_range

■ sort_buffers_scan – count

Description: Number of sorts that were done by scanning the table.

Calculated as:

sort_scan

■ sort_buffers_temp_files – count

Description: Temporary files created because of insufficient sort buffer size.

Calculated as:

Sort_merge_passes

■ full_table_scan_rate – rate

Description: Percentage of rows that were accessed via full table scan.

Calculated as:

(Handler_read_rnd_next + Handler_read_rnd) / (Handler_read_rnd_next + Handler_read_rnd + Handler_read_first + Handler_read_next + Handler_read_key + Handler_read_prev)

■ full_table_scan_selects_requiring – count

Description: Number of times a full table was read for a SELECT.

Calculated as:

select_scan

■ full_table_scan_for_joins – count

Description: The number of joins that perform table scans because they do not use indexes.

Calculated as:

Select_full_join

■ stmts_all – count

Description: Total number of statements that all clients have sent to the server.

Calculated as:

Questions

■ stmts_select_percent – ratio

Description: Percentage of SELECTs out of all statements.

Calculated as:

(Com_select + Qcache_hits) / Questions

■ stmts_insert_percent – ratio

Description: Percentage of INSERTs out of all statements.

Page 46: mysql-1.4

Probe Configuration

46 mysql Guide

Calculated as:

Com_insert / Questions

■ stmts_update_percent – ratio

Description: Percentage of UPDATEs out of all statements.

Calculated as:

Com_update / Questions

■ stmts_delete_percent – ratio

Description: Percentage of DELETEs out of all statements.

Calculated as:

Com_delete / Questions

■ stmts_replace_percent – ratio

Description: Percentage of REPLACEs out of all statements.

Calculated as:

Com_replace / Questions

■ stmts_commits – count

Description: Number of transaction commits.

Calculated as:

Com_commit

■ stmts_rollback_commit_ratio – ratio

Description: Rollback to commit ratio.

Calculated as:

Com_rollback/Com_commit

■ rep_slave_running – status

Description: State of Replication.

Calculated as:

Slave_running

■ rep_io_running – status

Description: Whether the I/O thread is started and has connected successfully to the master.

Calculated as:

slave_io_running

■ rep_slave_sql_running – status

Description: Whether the SQL thread is started.

Page 47: mysql-1.4

Probe Configuration

Chapter 3: mysql Configuration 47

Calculated as:

slave_sql_running

■ rep_seconds_behind_master – gauge

Description: Time difference in seconds between the slave SQL thread and the slave I/O thread.

Calculated as:

Seconds_Behind_Master

■ last_errno – gauge

Description: The error number returned by the most recently executed query.

Calculated as:

Last_Errno

■ rep_slave_retried_transactions – count

Description: The total number of times since startup that the replication slave SQL thread has retried transactions.

Calculated as:

Slave_retried_transactions

■ rep_slave_open_temp_tables – gauge

Description: The number of temporary tables that the Slave SQL thread currently has open.

Calculated as:

Slave_open_temp_tables

■ rep_master_log_read_position – gauge

Description: The position up to which the I/O thread has read in the current master binary log.

Calculated as:

Read_master_log_pos

■ rep_relay_master_log_file_position – gauge

Description: The position of the last event executed by the SQL thread from the master's binary log.

Calculated as:

Exec_Master_Log_Pos

■ rep_relay_log_file_position – gauge

Description: The position up to which the SQL thread has read and executed in the current relay log.

Calculated as:

Page 48: mysql-1.4

Probe Configuration

48 mysql Guide

Relay_Log_Pos

■ bin_log_transactions_used_cache – count

Description: Total number of transactions that used the binary log cache.

Calculated as:

Binlog_cache_use

■ bin_log_transactions_saved_in_temp_file – count

Description: Number of transactions that used a temporary file.

Calculated as:

Binlog_cache_disk_use

■ bin_log_transactions_saved_in_temp_file_rate – rate

Description: Percentage of transactions that used a temp file.

Calculated as:

Binlog_cache_disk_use/Binlog_cache_use

■ table_size_ratio – ratio

Description: Percent of free space in a table.

Calculated as:

(sum of max table size - sum of table size) / sum of max table size

String Matching Methods

The probe supports two methods of string-matching. The simple method is called pattern matching, and is very similar to the one found in many popular shells (UNIX), and the more powerful one, called regular expressions.

Page 49: mysql-1.4

Chapter 4: QoS Threshold Metrics 49

Chapter 4: QoS Threshold Metrics

Many monitors ship with default QoS threshold values set. The default threshold values provide an idea of the type of values to be entered in the fields and are not necessarily recommended best practice values. To aid in tuning thresholds and reducing false-positive alarms, this section describes the QoS metrics and provides the default QoS thresholds.

QoS Metrics

The following table describes the checkpoint metrics that can be configured using the New Probe probe.

Monitor Unit Description

QOS_MYSQL_AVAILABLE

Enabled Database Status

QOS_MYSQL_BIN_LOG_TRANSACTIONS_SAVED_IN_TEMP_FILE

Count Number of transactions that used a temporary file.

QOS_MYSQL_BIN_LOG_TRANSACTIONS_SAVED_IN_TEMP_FILE_RATE

Percent Percentage of transactions that used a temp file.

QOS_MYSQL_BIN_LOG_TRANSACTIONS_USED_CACHE

Count Total number of transactions that used the binary log cache.

QOS_MYSQL_BYTES_RECEIVED

Count The number of bytes received from all clients

QOS_MYSQL_BYTES_SENT

Count The number of bytes sent from all clients

QOS_MYSQL_CACHE_TABLES_OPEN

Total Count Number of open tables.

QOS_MYSQL_CONNECTION_PEAK_USAGE_RATE

Percent Highest percentage of maximum allowed connections since last restart.

QOS_MYSQL_CONNECTION_REFUSAL_RATE

Percent Percentage of connections refused

QOS_MYSQL_CONNECTION_USAGE_RATE

Percent Percentage of maximum allowed connections in use

Page 50: mysql-1.4

QoS Metrics

50 mysql Guide

QOS_MYSQL_CONNECTIONS_ABORTED

Count Connections that were established successfully but got aborted abruptly.

QOS_MYSQL_CONNECTIONS_ATTEMPTED

Count Number of connection attempts

QOS_MYSQL_CONNECTIONS_COUNT

Total Count Current number of open connections

QOS_MYSQL_CONNECTIONS_REFUSED

Count Number of refused connections

QOS_MYSQL_CONNECTIONS_SUCCESSFUL

Count Number of connection attempts

QOS_MYSQL_FULL_TABLE_SCAN_FOR_JOINS

Count The number of joins that perform table scans as they do not use indexes.

QOS_MYSQL_FULL_TABLE_SCAN_RATE

Percent Percentage of rows that were accessed via full table scan.

QOS_MYSQL_FULL_TABLE_SCAN_SELECTS_REQUIRING

Count Number of times a full table was read for a SELECT.

QOS_MYSQL_INNODB_AVG_WAIT_TIME

Milliseconds Average wait time for a row lock.

QOS_MYSQL_INNODB_CACHE_HIT_RATE

Percent Percentage of reads from cache instead of from disk.

QOS_MYSQL_INNODB_CACHE_USAGE_RATE

Percent Percentage of cache in use.

QOS_MYSQL_INNODB_CACHE_WRITE_WAITS_RATE

Percent Percentage of write requests which had to wait.

QOS_MYSQL_INNODB_LATCHED_PAGES

Total Count Number of latched pages in cache.

QOS_MYSQL_INNODB_LOCK_WAITS

Count The number of row locks currently being waited.

QOS_MYSQL_INNODB_LOG_WAITS_RATE

Percent Percentage of cache writes that had to wait.

QOS_MYSQL_INNODB_TOTAL_SIZE_CACHE_SIZE_RATE

Percent InnoDB cache size as a percentage of the total size of all log files.

QOS_MYSQL_MAX_PER_THREAD_MEMORY

Total Count Configured max memory per thread buffers

Page 51: mysql-1.4

QoS Metrics

Chapter 4: QoS Threshold Metrics 51

QOS_MYSQL_MAX_SHARED_BUFFERS

Total Count Configured max shared buffers

QOS_MYSQL_MYISAM_CACHE_HIT_RATE

Percent Percentage of reads from cache instead of from disk.

QOS_MYSQL_MYISAM_CACHE_USAGE_RATE

Percent Percentage of cache in use.

QOS_MYSQL_MYISAM_READ_REQUESTS

Count Number of key block read requests.

QOS_MYSQL_MYISAM_READS_FROM_DISK

Count Number of key blocks read from disk.

QOS_MYSQL_MYISAM_TOTAL_DISK_WRITE_RATIO

Percent Ratio of disk writes to all write requests .

QOS_MYSQL_MYISAM_WRITE_REQUESTS

Count Number of key block write requests.

QOS_MYSQL_MYISAM_WRITES_TO_DISK

Count Number of key block writes to disk.

QOS_MYSQL_NUMBER_OF_DATABASES

Total Count Number of databases

QOS_MYSQL_PEAK_OPEN_CONNECTIONS

Total Count Highest number of concurrent open connections since last restart

QOS_MYSQL_QUERIES_IN_CACHE

Total Count The number of queries registered in the query cache.

QOS_MYSQL_QUERIES_INSERTED_CACHE

Total Count The number of queries added to the query cache.

QOS_MYSQL_QUERIES_NOT_CACHED

Total Count The number of non-cached queries.

QOS_MYSQL_QUERIES_PRUNED_FROM_CACHE

Total Count Number of queries inserted into the query cache, but got pruned.

QOS_MYSQL_QUERY_CACHE_HIT_RATE

Percent Cache hit rate.

QOS_MYSQL_QUERY_CACHE_HITS

Total Count The number of query cache hits.

QOS_MYSQL_QUERY_CACHE_PRUNED_INSERTS_RATIO

Percent Ratio of pruned queries to total inserted.

QOS_MYSQL_QUERY_CACHE_USAGE_RATE

Percent Percentage of cache in use.

Page 52: mysql-1.4

QoS Metrics

52 mysql Guide

QOS_MYSQL_REP_IO_RUNNING

Enabled I/O thread is started and has connected successfully to the master.

QOS_MYSQL_REP_MASTER_LOG_READ_POSITION

Position The position till the I/O thread has read in the current master binary log.

QOS_MYSQL_REP_RELAY_LOG_FILE_POSITION

Position The position till the SQL thread has processed in the current relay log.

QOS_MYSQL_REP_RELAY_MASTER_LOG_FILE_POSITION

Position The position of the SQL thread last executed event.

QOS_MYSQL_REP_SECONDS_BEHIND_MASTER

Seconds Time difference between the slave SQL thread and the I/O thread.

QOS_MYSQL_REP_SLAVE_OPEN_TEMP_TABLES

Total Count The number of temporary tables the Slave SQL thread currently has open.

QOS_MYSQL_REP_SLAVE_RETRIED_TRANSACTIONS

Count How many times the replication slave SQL thread has retried transactions.

QOS_MYSQL_REP_SLAVE_RUNNING

Enabled State of Replication.

QOS_MYSQL_REP_SLAVE_SQL_RUNNING

Enabled Whether the SQL thread is started.

QOS_MYSQL_SLOW_LAUNCH_THREADS

Count Number of slow launch threads.

QOS_MYSQL_SLOW_QUERIES_ENABLED

Enabled Slow Queries Enabled.

QOS_MYSQL_SLOW_QUERIES_MIN_TIME

Seconds Min time for a query to be considered slow.

QOS_MYSQL_SLOW_QUERIES_NO

Count Number of slow queries.

QOS_MYSQL_SORT_BUFFERS_RANGE

Count Number of sorts done using ranges.

QOS_MYSQL_SORT_BUFFERS_SCAN

Count Number of sorts that were done by scanning the table.

QOS_MYSQL_SORT_BUFFERS_TEMP_FILES

Count Temporary files created because of insufficient sort buffer size.

Page 53: mysql-1.4

QoS Metrics

Chapter 4: QoS Threshold Metrics 53

QOS_MYSQL_STMTS_ALL

Count Total number of statements that all clients have sent to the server.

QOS_MYSQL_STMTS_COMMITS

Count Number of transaction commits.

QOS_MYSQL_STMTS_DELETE_PERCENT

Percent Percentage of DELETEs out of all statements.

QOS_MYSQL_STMTS_INSERT_PERCENT

Percent Percentage of INSERTs out of all statements.

QOS_MYSQL_STMTS_REPLACE_PERCENT

Percent Percentage of REPLACEs out of all statements.

QOS_MYSQL_STMTS_ROLLBACK_COMMIT_RATIO

Percent Rollback to commit ratio.

QOS_MYSQL_STMTS_SELECT_PERCENT

Percent Percentage of SELECTs out of all statements.

QOS_MYSQL_STMTS_UPDATE_PERCENT

Percent Percentage of UPDATEs out of all statements.

QOS_MYSQL_TABLE_CACHE_MISSES

Count Number of tables opened not in cache.

QOS_MYSQL_TABLE_CACHE_RATE

Percent Percentage of open tables that are in cache.

QOS_MYSQL_TABLE_LOCK_CONTENTION_RATE

Percent Percentage of lock requests that had to be waited.

QOS_MYSQL_TABLE_LOCK_WAITS

Count Table lock waits.

QOS_MYSQL_TABLE_LOCKS_ACQUIRED_IMMEDIATELY

Count Table locks acquired immediately.

QOS_MYSQL_TABLE_SIZE_RATIO

Percent Percent of free space in a table.

QOS_MYSQL_TEMP_TABLES_CREATED

Count Number of temporary tables created in memory.

QOS_MYSQL_TEMP_TABLES_CREATED_ON_DISK

Count Number of temporary tables created on disk.

QOS_MYSQL_TEMP_TABLES_DISK_TOTAL_RATIO

Percent Percentage of temp tables created on disk.

Page 54: mysql-1.4

Alert Metrics Default Settings

54 mysql Guide

QOS_MYSQL_THREAD_CACHE_HIT_RATE

Percent Percentage of threads re-used from cache.

QOS_MYSQL_THREAD_CACHE_NUMBER_OF_THREADS

Total Count Current number of threads cached.

QOS_MYSQL_THREAD_CACHE_THREADS_CREATED_CON

Count Number of threads created to handle connections.

QOS_MYSQL_THREADS_RUNNING

Total Count Current number of running threads

QOS_MYSQL_TOT_MEMORY_CONFIGURED

Total Count Total memory configured

Alert Metrics Default Settings

This section contains the alert metric default settings for the mysql probe.

QoS Metric Warning Severity

Warning Threshold

Error Severity

Error Threshold Description

available critical 1 Able to make a connection

bin_log_transactions_saved_in_temp_file

Information 1

Number of transactions that used a temporary file.

bin_log_transactions_saved_in_temp_file_rate warning 20 Major 30

Percentage of transactions that used a temp file.

bin_log_transactions_used_cache information 1

Total number of transactions that used the binary log cache.

Bytes_received information 1

The number of bytes received from all clients

Bytes_sent information 1

The number of bytes sent from all clients

Page 55: mysql-1.4

Alert Metrics Default Settings

Chapter 4: QoS Threshold Metrics 55

QoS Metric Warning Severity

Warning Threshold

Error Severity

Error Threshold Description

Cache_tables_open information 1

Number of open tables.

Connection_peak_usage_rate

Warning 85 Major 95

Highest percentage of maximum allowed connections since last restart

Connection_refusal_rate Warning 10 Major 15 Percentage of connections refused

Connection_usage_rate Major 75

Percentage of maximum allowed connections in use.

Connections_aborted Information 1

Connections that were established successfully but got aborted abruptly.

Connections_attempted Information 1

Number of connection attempts

Connections_count Information 1

Current number of open connections

Connections_refused Information 1

Number of refused connections

Connections_successsful Information 1

Number of successful connections made

Full_table_scan_for_joins Information 1

The number of joins that perform table scans because they do not use indexes.

Full_table_scan_rate Warning 20 Major 40

Percentage of rows that were accessed via full table scan.

Full_table_scan_selects_requiring Information 1

Number of times a full table was read for a SELECT.

Innodb_avg_wait_time Information 1

Average wait time for a row lock.

Page 56: mysql-1.4

Alert Metrics Default Settings

56 mysql Guide

QoS Metric Warning Severity

Warning Threshold

Error Severity

Error Threshold Description

Innodb_cache_hit_rate Warning 95 Major 75

Percentage of reads from cache instead of from disk.

Innodb_cache_usage_rate Warning 75 Major 95 Percentage of cache in use.

Innodb_cache_write_waits_rate Warning 5 Major 10

Percentage of write requests which had to wait.

Innodb_latched_pages Information 1

Number of latched pages in cache.

Innodb_lock_waits Information 1

The number of row locks currently being waited.

Innodb_log_waits_rate Warning 10 Major 15

Percentage of cache writes that had to wait.

Innodb_total_size_cache_size_rate Warning 95 Major 75

InnoDB cache size as a percentage of the total size of all log files.

Last_emo Warning 0

The error number returned by the most recently executed query.

Max_per_thread_memory Information 1

Configured max memory per thread buffers

Max_shared_buffers Information 1

Configured max shared buffers

Myisam_cache_hit_rate Warning 95 Major 85

Percentage of reads from cache instead of from disk.

Myisam_cache_usage_rate Warning 85 Major 95 Percentage of cache in use.

Myisam_read_requests Information 1

Number of key block read requests.

Myisam_reads_from_disk Information 1

Number of key blocks read from disk.

Page 57: mysql-1.4

Alert Metrics Default Settings

Chapter 4: QoS Threshold Metrics 57

QoS Metric Warning Severity

Warning Threshold

Error Severity

Error Threshold Description

Myisam_total_disk_write_ratio warning 75 Major 85 Ratio of disk writes to all write requests.

Myisam_write_requests Information 1

Number of key block write requests.

Myisam_writes_to_disk Information 1

Number of key block writes to disk.

Number_of_databases Information 1

Number of databases

Peak_open_connections Information 1

Highest number of concurrent open connections since last restart

Queries_in_cache Information 1

The number of queries registered in the query cache.

Queries_inserted_cache Information 1

The number of queries added to the query cache.

Queries_not_cached Information 1

The number of non-cached queries (not cache able, or not cached due to the cache type).

Queries_pruned_from_cache Information 1

Number of queries that were inserted into the query cache, but subsequently got pruned.

Query_cache_hit_rate Warning 25 Major 5 Cache hit rate.

Query_cache_hits Information 1

The number of query cache hits.

Query_cache_pruned_inserts_ratio Warning 15 Major 20

Ratio of pruned queries to total inserted.

Query_cache_usage_rate Warning 75 Major 95 Percentage of cache in use.

Page 58: mysql-1.4

Alert Metrics Default Settings

58 mysql Guide

QoS Metric Warning Severity

Warning Threshold

Error Severity

Error Threshold Description

Rep_io_running Warning 1

Whether the I/O thread is started and has connected successfully to the master.

Rep_master_log_read_position Information 1

The position up to which the I/O thread has read in the current master binary log.

Rep_relay_log_file_position Information 1

The position up to which the SQL thread has read and executed in the current relay log.

Rep_relay_master_log_file_position Information 1

The position of the last event executed by the SQL thread from the master's binary log.

Rep_seconds_behind_master Information 1

Time difference in seconds between the slave SQL thread and the slave I/O thread.

Rep_slave_open_temp_tables Information 1

The number of temporary tables that the Slave SQL thread currently has open.

Rep_slave_retired_transactions Information 1

The total number of times since startup that the replication slave SQL thread has retried transactions.

Rep_slave_running Major 1 State of Replication.

Rep_slave_sql_running Warning 1

Whether the SQL thread is started.

Running_threads Information 1

Current number of running threads

Page 59: mysql-1.4

Alert Metrics Default Settings

Chapter 4: QoS Threshold Metrics 59

QoS Metric Warning Severity

Warning Threshold

Error Severity

Error Threshold Description

Slow_launch_threads Information 1

Number of slow launch threads.

Slow_queries_enabled Information 1

Slow Queries Enabled.

Slow_queries_min_time Information 1

Min time for a query to be considered slow.

Slow_queries_no Information 1

Number of slow queries.

Sort_buffers_range Information 1

Number of sorts done using ranges.

Sort_buffers_scan Information 1

Number of sorts that were done by scanning the table.

Sort_buffers_temp_files Information 1

Temporary files created because of insufficient sort buffer size.

Stmts_all Information 1

Total number of statements that all clients have sent to the server.

Stmts_commits Information 1

Number of transaction commits.

Stmts_delete_percent Information 1

Percentage of DELETEs out of all statements.

Stmts_insert_percent Information 1

Percentage of INSERTs out of all statements.

Stmts_replace_percent Information 1

Percentage of REPLACEs out of all statements.

Stmts_rollback_commit_ratio Warning 5 Major 25 Rollback to commit ratio.

Stmts_select_percent Information 1

Percentage of SELECTs out of all statements.

Page 60: mysql-1.4

Alert Metrics Default Settings

60 mysql Guide

QoS Metric Warning Severity

Warning Threshold

Error Severity

Error Threshold Description

Stmts_update_percent Information 1

Percentage of UPDATEs out of all statements.

Table_cache_misses Information 1

Number of tables opened not in cache.

Table_cache_rate Warning 15 Major 25

Percentage of open tables that are in cache.

Table_lock_contention_rate Warning 30 Major 40

Percentage of lock requests that had to be waited.

Table_lock_waits Information 1 Table lock waits.

Table_lock_aquired_immediately Information 1

Table locks acquired immediately.

Table_size_ratio Major 5 Percent of free space in a table.

Temp_tables_created Information 1

Number of temporary tables created in memory.

Temp_tables_created_on_disk Information 1

Number of temporary tables created on disk.

Temp_tables_disk_total_ratio Warning 50 Major 70

Percentage of temp tables created on disk.

Thread_cache_hit_rate Warning 95 Major 90

Percentage of threads re-used from cache.

Thread_cache_number_of_threads Information 1

Current number of threads cached.

Thread_cache_threads_created_con

Information 1

Number of threads created to handle connections.

Tot_memory_configured Information 1

Total memory configured