Real-time monitoring of MySQL status

Source: Internet
Author: User
Tags mysql connection string statsd

Most of the site's performance bottlenecks will be on the database, so want to monitor the MySQL, the search for the relevant information.

Later and colleagues discussed the next cacti and nagios some old and outdated, graphite more fashionable, and then searched the relevant information, finally made out, the effect is as follows

Can see in real time MySQL Open table number, the number of files, is executing, has been created, the number of connected threads, locks, query cache, table scan related counters, as well as the completed Select,insert, delete, update SQL number, etc. In short, the various state of MySQL at a glance.

The meanings of the specific indicators refer to the following links:

http://lxneng.iteye.com/blog/451985

If you have deployed graphite, then find an agent to collect MySQL status, as follows.

Https://github.com/serialx/mysql-statsd

Installation operation is simple

# downloadGitCloneHttps://GitHub.Com/Serialx/Mysql-Statsd.Gitcd mysql-statsd# installation dependent pip install -rrequirements.txtpip install twisted# configure MySQL connection string, STATSD collector address vi config/example.< span class= "n" >ini# run python mysql- statsd. Py --config config/exampleini 

Percona This article is also good, black cacti and nagios, and explain the amount of why graphite+statsd more fashionable.

MYSQL performance monitoring USING STATSD and GRAPHITE

Real-time monitoring of MySQL status

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.