Monitoring All (Yes, All!) MySQL Metrics with Percona ... · Monitoring All (Yes, All!) MySQL...
Transcript of Monitoring All (Yes, All!) MySQL Metrics with Percona ... · Monitoring All (Yes, All!) MySQL...
Monitoring All (Yes, All!) MySQL Metrics with
Percona Cloud Tools
Vadim Tkachenko Percona, Co-founder /CTO
www.percona.com cloud.percona.com
www.MySQLPerformanceBlog.com
This webinar
Why metrics monitoring
Installation and setup
Work with metrics
Monitoring All (Yes, All!) MySQL Metrics with Percona Cloud Tools 2
This webinar is 2nd in series
1st: Analyze MySQL Query Performance with Percona Cloud Tools
• http://www.percona.com/resources/mysql-webinars/analyze-mysql-query-performance-percona-cloud-tools
Monitoring All (Yes, All!) MySQL Metrics with Percona Cloud Tools 3
Why metrics monitoring?
Understanding Queries is good, but…
• On queries diagnostic see my 1st webinar
Monitoring All (Yes, All!) MySQL Metrics with Percona Cloud Tools 4
Why metrics monitoring?
But, we need a way to look into an inside of the system
Traditional way:
• vmstat
• iostat
• mysqladmin ext -i15 -r
• (demo on a live system)
What about history or charts?
• There should be a better way
Monitoring All (Yes, All!) MySQL Metrics with Percona Cloud Tools 5
Popular solutions
Cacti
• http://www.percona.com/doc/percona-monitoring-plugins/1.1/cacti/index.html
Zabbix
• http://www.percona.com/doc/percona-monitoring-plugins/1.1/zabbix/index.html
Monitoring All (Yes, All!) MySQL Metrics with Percona Cloud Tools 6
Limitations of popular solutions
Cacti graph
Cacti installation
• http://www.percona.com/doc/percona-monitoring-plugins/1.1/cacti/installing-templates.html
Monitoring All (Yes, All!) MySQL Metrics with Percona Cloud Tools 7
There must be a better way!
3-minutes install
High resolution in data collection
Real time
Look back into past
Gather ALL metrics
• You never know what is ahead
Monitoring All (Yes, All!) MySQL Metrics with Percona Cloud Tools 8
Percona Cloud Tools
Metrics monitor & percona-agent
• Account on https://cloud.percona.com/
• http://www.percona.com/downloads/percona-agent/LATEST/
• (demo of install)
Monitoring All (Yes, All!) MySQL Metrics with Percona Cloud Tools 9
Percona Cloud Tools
Metrics monitor – Why ?
• To Make DBAs or MySQL users more efficient
• Not to automatically predict a behavior 1000+ servers, but:
• To give a comprehensive overview of the system that a DBA works with, so:
• They can make an educated, based on data, decision
• That is an incredibly useful even a DBA has only a couple of servers
Monitoring All (Yes, All!) MySQL Metrics with Percona Cloud Tools 10
Demo details
Monitoring All (Yes, All!) MySQL Metrics with Percona Cloud Tools 11
Amazon EC2 m3.large
Percona Server 5.6
Percona-agent
Linkbench benchmark
Amazon RDS 5.6 m3.large
percona-agent: some details
OpenSource project
• Sources https://github.com/percona/percona-agent
• AGPLv3 license
WebSocket technology
• https connections, 443 port (firewall friendly)
• Bi-directional real-time communication
• If used through Proxy – it must support WebSockets (ngnix known to support it, but not tested yet with PCT)
Monitoring All (Yes, All!) MySQL Metrics with Percona Cloud Tools 12
percona-agent
What do we collect
• All MySQL Metrics from SHOW GLOBAL STATUS
• All MySQL Variables from SHOW GLOBAL VARIABLES
• All InnoDB Metrics from INFORMATION_SCHEMA.INNODB_METRICS
• Disabled by default
• System metrics (CPU, IO, Memory)
• Not on Amazon RDS
Monitoring All (Yes, All!) MySQL Metrics with Percona Cloud Tools 13
Components
Monitoring All (Yes, All!) MySQL Metrics with Percona Cloud Tools 14
percona-agent
How do we collect
• System metrics: collect every 10 sec
• MySQL Status/InnoDB metrics: collect every 1 sec
• MySQL Variables: collect every 1 hour
• Data aggregated and send every 1 min:
• Min, max, 5%, 95%, median, avg values
Monitoring All (Yes, All!) MySQL Metrics with Percona Cloud Tools 15
percona-agent
How to see min/max/avg
• Turn on/off dynamically (demo)
Monitoring All (Yes, All!) MySQL Metrics with Percona Cloud Tools 16
percona-agent
Default dashboard walkthrough
• CPU
• MySQL Throughput
• MySQL Threads
• MySQL Connections
• MySQL Network
• MySQL Commands
• MySQL Sorts
• MySQL Temporary Objects
• InnoDB I/O
• InnoDB Buffer Pool
• InnoDB rows
• Loadavg
• … (see demo)
Monitoring All (Yes, All!) MySQL Metrics with Percona Cloud Tools 17
Add new chart
Monitoring All (Yes, All!) MySQL Metrics with Percona Cloud Tools 18
Trends
Monitoring All (Yes, All!) MySQL Metrics with Percona Cloud Tools 19
Percona Cloud Tools / Metrics Monitor
Helps to Gain Insight into system
Easy installation
Trends / History
Monitoring All (Yes, All!) MySQL Metrics with Percona Cloud Tools 20
Percona Cloud Tools
Beta status
Free level forever
Everyone can register and try
Monitoring All (Yes, All!) MySQL Metrics with Percona Cloud Tools 21
Roadmap
Coming soon
• Even simplier installation (no question asked)
• RPM, DEB, Puppet friendly
• Analyze queries from Performance Schema Amazon RDS/5.6
• Multiple Dashboards
• Query Advises
• You tell us!
• Your feedback is extremely valuable
Monitoring All (Yes, All!) MySQL Metrics with Percona Cloud Tools 22