Munin graphing of MySQL

While there are many graphing tools out there and we’ve used Munin for a while now.

The MySQL plugin for Munin had fallen out of date and the show engine innodb status output changed in 5.5 making some bits of the plugin simply not work any more. Also the show global status has some extra variables so there was a need to create new graphs.

All of these are now in the 2.1.8+ development releases of Munin.

Here are samples of the new/updated graphs.

mysql2_tables-day

Tables

Munin table definations

Table Definitions

mysql2_innodb_bpool_act-day


Innodb Buffer Pool Activity

mysql_innodb_bpool_internal_breakdown-day

Innodb Buffer Pool Internal Breakdown

Innodb Insert Buffer

Innodb Insert Buffer

mysql_innodb_bpool-day

Innodb Buffer Pool

Innodb Semaphores

Innodb Semaphores

Innodb Master Thread

Innodb Master Thread

mysql_innodb_adaptive_hash-day

Innodb Adaptive Hash Index

Innodb Queries and Transactions

Innodb Queries and Transactions

Innodb Read Views

Innodb Read Views

Innodb Descriptors

Innodb Descriptors

Performance Schema Losses

Performance Schema Losses

Query Cache

Query Cache

Maximum Memory of MySQL

Maximum Memory of MySQL

Rows

Rows

Handler Read

Handler Read

Handler Transaction

Handler Transaction

Handler Write

Handler Write

Handler Temporary Write/Updates

Handler Temporary Write/Updates

mysql2_execution-day

Execution (triggers and events)

mysql_icp-day

Index Condition Pushdown

Multi Range Read Optimizations

Multi Range Read Optimizations

Some of these above graphs may miss a variable or two with MariaDB-10 because of variable name changes. These will be corrected when we get to those. In MariaDB-10 there is useful transition to information schema tables for status information which will make it significantly easier to parse.

Individual buffer pool information also has been parsed out however we haven’t worked out how to graphing this correctly. Also not yet merged is a bunch of Galera graphs which are currently waiting on some Galera provider changes.

We’ll continue to work with the Munin developers to keep this MySQL plugin up to date and useful.

There’s other graphs in the MySQL Munin plugins that we haven’t changed so aren’t included here.

2 Responses to “Munin graphing of MySQL”

  1. Please have a look at https://github.com/kjellm/munin-mysql

    I’ve used that plugin for Munin for a couple of years now, and have added quite a few graphs myself for use with Percona Server and Galera.

  2. As the original author of the upstream mysql plugin Kjell-Magne Øierud set a good foundation for the plugin. Looking at the current difference I can see there isn’t most of graphs here and does have maatkit/pt_heartbeat, and pulls some state data from the process list which looks interesting.

    The contrib module for Galera is what I based my yet to be merged bits on. Waiting on https://github.com/codership/galera/pull/57 and https://github.com/codership/galera/pull/50. The CacheEfficiency module also is a good example of CDEF functions so I’ll probably look at that again.

    Thanks for posting Mrten.

Leave a Comment