Академический Документы
Профессиональный Документы
Культура Документы
Management
mysql Guide
v1.4 series
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).
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
Contents
Chapter 1: mysql 1.4
17
Prerequisites .............................................................................................................................................................. 17
Supported Platforms .................................................................................................................................................. 17
System Requirements ................................................................................................................................................ 18
Software Requirements ............................................................................................................................................. 18
Monitoring System Requirements ............................................................................................................................. 18
Probe Deployment Information ................................................................................................................................. 18
19
49
Contents 5
mysql Overview
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:
8 mysql Guide
mysql Overview
Total size of all logs files as a percentage of the InnoDB cache size.
The number of non-cached queries (not cache able, or not cached due to the cache
type).
Number of queries that were inserted into the query cache, but subsequently got
pruned.
mysql Overview
and so on.
10 mysql Guide
mysql Overview
Documentation Changes
This table describes the version history for this document.
Version
Date
What's New?
1.4
February 2013
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)
Documentation Changes 11
Installation Notes
Installation Notes
Drop the package from your local archive onto the targeted robot(s).
GENERAL
Available
Databases
Bytes Received
Bytes Sent
CONNECTION HISTORY
Connection Attempts
Successful Connections
Refused Connections
Aborted Connections
CONNECTIONS
Connections
Running Threads
12 mysql Guide
Installation Notes
Read Requests
Write Requests
Writes To Disk
INNODB CACHE
Latched Pages
TABLE LOCKS
Lock Waits
Lock Waits
INNODB LOGS
THREAD CACHE
Threads
TABLE CACHE
Tables Open
QUERY CACHE
Queries In Cache
Documentation Changes 13
Installation Notes
Cache Hits
TEMPORARY TABLES
BINARY LOG
14 mysql Guide
SLOW QUERIES
Enabled
Slow Queries
SORT BUFFERS
Sort Range
Sort Scan
Temp Files
STATEMENTS
All Statements
Select Percent
Insert Percent
Update Percent
Delete Percent
Installation Notes
Replace Percent
Commits
REPLICATION
Slave Running
Size
Table Size
Documentation Changes 15
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 VARIABLES
SHOW DATABASES
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.
System Requirements
System Requirements
The mysql probe should be installed on systems with the following minimum resources:
Software Requirements
The mysql probe requires the following software environment:
18 mysql Guide
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
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:
You click the Apply button to activate any configuration modifications done.
Probe Configuration
20 mysql Guide
Probe Configuration
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 probes 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.
Probe Configuration
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.
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.
22 mysql Guide
Probe Configuration
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.
Probe Configuration
24 mysql Guide
Probe Configuration
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).
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.
Probe Configuration
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.
26 mysql Guide
Probe Configuration
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.
Probe Configuration
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:
28 mysql Guide
Probe Configuration
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.
Probe Configuration
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.
30 mysql Guide
Probe Configuration
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.
Probe Configuration
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.
32 mysql Guide
Probe Configuration
Probe Configuration
34 mysql Guide
Probe Configuration
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.
Probe Configuration
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.
36 mysql Guide
Probe Configuration
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.
Probe Configuration
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
38 mysql Guide
Probe Configuration
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
Probe Configuration
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
40 mysql Guide
Probe Configuration
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
Probe Configuration
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:
42 mysql Guide
Probe Configuration
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.
Probe Configuration
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:
44 mysql Guide
Probe Configuration
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.
Probe Configuration
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.
46 mysql Guide
Probe Configuration
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:
Probe Configuration
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
48 mysql Guide
QoS Metrics
The following table describes the checkpoint metrics that can be configured using the
New Probe probe.
Monitor
Unit
Description
QOS_MYSQL_AVAILABL
E
Enabled
Database Status
QOS_MYSQL_BIN_LOG_ Count
TRANSACTIONS_SAVED
_IN_TEMP_FILE
QOS_MYSQL_BIN_LOG_ Percent
TRANSACTIONS_SAVED
_IN_TEMP_FILE_RATE
QOS_MYSQL_BIN_LOG_ Count
TRANSACTIONS_USED_
CACHE
QOS_MYSQL_BYTES_RE Count
CEIVED
QOS_MYSQL_BYTES_SE
NT
Count
QOS_MYSQL_CONNECTI Percent
ON_PEAK_USAGE_RATE
QOS_MYSQL_CONNECTI Percent
ON_REFUSAL_RATE
Percentage of connections
refused
QOS_MYSQL_CONNECTI Percent
ON_USAGE_RATE
QoS Metrics
50 mysql Guide
QOS_MYSQL_CONNECTI Count
ONS_ABORTED
QOS_MYSQL_CONNECTI Count
ONS_ATTEMPTED
QOS_MYSQL_CONNECTI Count
ONS_REFUSED
QOS_MYSQL_CONNECTI Count
ONS_SUCCESSFUL
QOS_MYSQL_FULL_TAB Count
LE_SCAN_FOR_JOINS
QOS_MYSQL_FULL_TAB Percent
LE_SCAN_RATE
QOS_MYSQL_FULL_TAB Count
LE_SCAN_SELECTS_REQ
UIRING
QOS_MYSQL_INNODB_
AVG_WAIT_TIME
Milliseconds
QOS_MYSQL_INNODB_
CACHE_HIT_RATE
Percent
QOS_MYSQL_INNODB_
CACHE_USAGE_RATE
Percent
QOS_MYSQL_INNODB_
CACHE_WRITE_WAITS_
RATE
Percent
QOS_MYSQL_INNODB_L Count
OCK_WAITS
QOS_MYSQL_INNODB_L Percent
OG_WAITS_RATE
QOS_MYSQL_INNODB_ Percent
TOTAL_SIZE_CACHE_SIZ
E_RATE
QoS Metrics
QOS_MYSQL_MYISAM_ Percent
CACHE_HIT_RATE
QOS_MYSQL_MYISAM_ Percent
CACHE_USAGE_RATE
QOS_MYSQL_MYISAM_ Count
READ_REQUESTS
QOS_MYSQL_MYISAM_ Count
READS_FROM_DISK
QOS_MYSQL_MYISAM_ Percent
TOTAL_DISK_WRITE_RA
TIO
QOS_MYSQL_MYISAM_ Count
WRITE_REQUESTS
QOS_MYSQL_MYISAM_ Count
WRITES_TO_DISK
Number of databases
QOS_MYSQL_QUERY_C
ACHE_HIT_RATE
Percent
QOS_MYSQL_QUERY_C
ACHE_HITS
Total Count
QOS_MYSQL_QUERY_C Percent
ACHE_PRUNED_INSERTS
_RATIO
QOS_MYSQL_QUERY_C
ACHE_USAGE_RATE
Percent
QoS Metrics
52 mysql Guide
QOS_MYSQL_REP_IO_R Enabled
UNNING
QOS_MYSQL_REP_MAS
TER_LOG_READ_POSITI
ON
Position
QOS_MYSQL_REP_RELA Position
Y_LOG_FILE_POSITION
QOS_MYSQL_REP_RELA Position
Y_MASTER_LOG_FILE_P
OSITION
QOS_MYSQL_REP_SECO Seconds
NDS_BEHIND_MASTER
QOS_MYSQL_REP_SLAV Count
E_RETRIED_TRANSACTI
ONS
QOS_MYSQL_REP_SLAV Enabled
E_RUNNING
State of Replication.
QOS_MYSQL_REP_SLAV Enabled
E_SQL_RUNNING
QOS_MYSQL_SLOW_LA
UNCH_THREADS
Count
QOS_MYSQL_SLOW_QU Enabled
ERIES_ENABLED
QOS_MYSQL_SLOW_QU Seconds
ERIES_MIN_TIME
QOS_MYSQL_SLOW_QU Count
ERIES_NO
QOS_MYSQL_SORT_BUF Count
FERS_RANGE
QOS_MYSQL_SORT_BUF Count
FERS_SCAN
QOS_MYSQL_SORT_BUF Count
FERS_TEMP_FILES
QoS Metrics
QOS_MYSQL_STMTS_AL Count
L
QOS_MYSQL_STMTS_C
OMMITS
Count
QOS_MYSQL_STMTS_D
ELETE_PERCENT
Percent
QOS_MYSQL_STMTS_IN Percent
SERT_PERCENT
QOS_MYSQL_STMTS_RE Percent
PLACE_PERCENT
QOS_MYSQL_STMTS_R Percent
OLLBACK_COMMIT_RAT
IO
QOS_MYSQL_STMTS_SE Percent
LECT_PERCENT
QOS_MYSQL_STMTS_U
PDATE_PERCENT
Percent
QOS_MYSQL_TABLE_CA Count
CHE_MISSES
QOS_MYSQL_TABLE_CA Percent
CHE_RATE
QOS_MYSQL_TABLE_LO Percent
CK_CONTENTION_RATE
QOS_MYSQL_TABLE_LO Count
CK_WAITS
QOS_MYSQL_TABLE_LO Count
CKS_ACQUIRED_IMMED
IATELY
QOS_MYSQL_TABLE_SIZ Percent
E_RATIO
QOS_MYSQL_TEMP_TA
BLES_CREATED
Count
QOS_MYSQL_TEMP_TA Count
BLES_CREATED_ON_DIS
K
QOS_MYSQL_TEMP_TA Percent
BLES_DISK_TOTAL_RATI
O
QOS_MYSQL_THREAD_
CACHE_HIT_RATE
Percent
QOS_MYSQL_THREAD_
CACHE_NUMBER_OF_T
HREADS
Total Count
QOS_MYSQL_THREAD_ Count
CACHE_THREADS_CREA
TED_CON
QOS_MYSQL_TOT_ME
MORY_CONFIGURED
Total Count
QoS Metric
Warning
Severity
Warning
Threshold
available
bin_log_transactions_saved_in_tem Informatio
p_file
n
bin_log_transactions_saved_in_tem
p_file_rate
warning
Error
Severity
Error
Threshold
Description
critical
Able to make a
connection
Number of
transactions that
used a temporary
file.
20
Percentage of
transactions that
used a temp file.
Major
30
Total number of
transactions that
used the binary log
cache.
Bytes_received
informatio
n
Bytes_sent
informatio
n
bin_log_transactions_used_cache
informatio
n
54 mysql Guide
QoS Metric
Warning
Severity
Warning
Threshold
Cache_tables_open
informatio
n
Connection_peak_usage_rate
Connection_refusal_rate
Warning
Error
Severity
Error
Threshold
Description
Number of open
tables.
85
W
a
r
n
i
n
g Major
95
Highest percentage
of maximum
allowed connections
since last restart
10
Major
15
Percentage of
connections refused
75
Percentage of
maximum allowed
connections in use.
Connection_usage_rate
Major
Connections_aborted
Informatio
n
Connections that
were established
successfully but got
aborted abruptly.
Connections_attempted
Informatio
n
Number of
connection attempts
Connections_count
Informatio
n
Current number of
open connections
Connections_refused
Informatio
n
Number of refused
connections
Connections_successsful
Informatio
n
Number of
successful
connections made
20
Percentage of rows
that were accessed
via full table scan.
Full_table_scan_for_joins
Informatio
n
Full_table_scan_rate
Warning
Full_table_scan_selects_requiring
Informatio
n
Innodb_avg_wait_time
Informatio
n
Major
40
Number of times a
full table was read
for a SELECT.
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.
10
Percentage of write
requests which had
to wait.
Innodb_cache_write_waits_rate
Warning
Innodb_latched_pages
Informatio
n
Number of latched
pages in cache.
Innodb_lock_waits
Informatio
n
10
15
Percentage of cache
writes that had to
wait.
75
Innodb_log_waits_rate
Innodb_total_size_cache_size_rate
Warning
Warning
95
Major
Major
Major
Max_per_thread_memory
Informatio
n
Configured max
memory per thread
buffers
Max_shared_buffers
Informatio
n
Configured max
shared buffers
Last_emo
Warning
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
Informatio
n
Myisam_reads_from_disk
Informatio
n
Number of key
blocks read from
disk.
56 mysql Guide
QoS Metric
Warning
Severity
Warning
Threshold
Error
Severity
Error
Threshold
Description
Myisam_total_disk_write_ratio
warning
75
Major
85
Myisam_write_requests
Informatio
n
Myisam_writes_to_disk
Informatio
n
Number_of_databases
Informatio
n
Number of
databases
Highest number of
concurrent open
connections since
last restart
The number of
queries registered in
the query cache.
The number of
queries added to the
query cache.
The number of
non-cached queries
(not cache able, or
not cached due to
the cache type).
Number of queries
that were inserted
into the query
cache, but
subsequently got
pruned.
Peak_open_connections
Informatio
n
Queries_in_cache
Informatio
n
Queries_inserted_cache
Informatio
n
Queries_not_cached
Informatio
n
Queries_pruned_from_cache
Informatio
n
Query_cache_hit_rate
Warning
25
Query_cache_hits
Informatio
n
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
75
Major
95
Percentage of cache
in use.
Warning
Major
QoS Metric
Rep_io_running
Rep_master_log_read_position
Rep_relay_log_file_position
Warning
Severity
Warning
Informatio
n
Informatio
n
Informatio
Rep_relay_master_log_file_position n
Rep_seconds_behind_master
Rep_slave_open_temp_tables
Rep_slave_retired_transactions
Informatio
n
Informatio
n
Informatio
n
Warning
Threshold
Error
Severity
Error
Threshold
Description
The position up to
which the I/O thread
has read in the
current master
binary log.
The position up to
which the SQL
thread has read and
executed in the
current relay log.
Time difference in
seconds between
the slave SQL thread
and the slave I/O
thread.
The number of
temporary tables
that the Slave SQL
thread currently has
open.
Rep_slave_running
Major
State of Replication.
Rep_slave_sql_running
Warning
Running_threads
Informatio
n
Current number of
running threads
58 mysql Guide
QoS Metric
Warning
Severity
Warning
Threshold
Slow_launch_threads
Informatio
n
Number of slow
launch threads.
Slow_queries_enabled
Informatio
n
Slow Queries
Enabled.
Slow_queries_min_time
Informatio
n
Slow_queries_no
Informatio
n
Number of slow
queries.
Sort_buffers_range
Informatio
n
Number of sorts
done using ranges.
Sort_buffers_scan
Informatio
n
Temporary files
created because of
insufficient sort
buffer size.
Total number of
statements that all
clients have sent to
the server.
Number of
transaction
commits.
Percentage of
DELETEs out of all
statements.
Percentage of
INSERTs out of all
statements.
Percentage of
REPLACEs out of all
statements.
Sort_buffers_temp_files
Informatio
n
Stmts_all
Informatio
n
Stmts_commits
Informatio
n
Stmts_delete_percent
Informatio
n
Stmts_insert_percent
Informatio
n
Stmts_replace_percent
Informatio
n
Stmts_rollback_commit_ratio
Warning
Stmts_select_percent
Informatio
n
Error
Severity
Major
Error
Threshold
25
Description
Rollback to commit
ratio.
Percentage of
SELECTs out of all
statements.
QoS Metric
Warning
Severity
Stmts_update_percent
Informatio
n
Percentage of
UPDATEs out of all
statements.
Table_cache_misses
Informatio
n
Number of tables
opened not in cache.
15
25
Percentage of open
tables that are in
cache.
40
Percentage of lock
requests that had to
be waited.
Table_cache_rate
Warning
Warning
Threshold
Error
Severity
Major
Description
Table_lock_contention_rate
Warning
30
Table_lock_waits
Informatio
n
Table_lock_aquired_immediately
Informatio
n
Table_size_ratio
Major
Temp_tables_created
Informatio
n
Temp_tables_created_on_disk
Informatio
n
Temp_tables_disk_total_ratio
Major
Error
Threshold
Warning
Percent of free
space in a table.
Number of
temporary tables
created in memory.
Number of
temporary tables
created on disk.
50
70
Percentage of temp
tables created on
disk.
90
Percentage of
threads re-used
from cache.
Major
Thread_cache_hit_rate
Warning
95
Thread_cache_number_of_threads
Informatio
n
Current number of
threads cached.
Thread_cache_threads_created_co
n
Informatio
n
Number of threads
created to handle
connections.
Tot_memory_configured
Informatio
n
Total memory
configured
60 mysql Guide
Major