<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <title type="text">g.raphaelli's weblog</title>
  <id>http://g.raphaelli.com/tags/ganglia/feed.atom</id>
  <updated>2009-08-07T23:46:46Z</updated>
  <link href="http://g.raphaelli.com/" />
  <link href="http://g.raphaelli.com/tags/ganglia/feed.atom" rel="self" />
  <generator uri="http://zine.pocoo.org/" version="0.1.2">Zine</generator>
  <entry xml:base="http://g.raphaelli.com/tags/ganglia/feed.atom">
    <title type="text">Ganglia for MySQL Metrics</title>
    <id>tag:g.raphaelli.com,2009-01-05/entry:2009/1/5/mysql-metrics-in-ganglia</id>
    <updated>2009-08-07T23:46:46Z</updated>
    <published>2009-01-05T02:43:00Z</published>
    <link href="http://g.raphaelli.com/2009/1/5/ganglia-mysql-metrics" />
    <author>
      <name>g</name>
    </author>
    <content type="html">&lt;p&gt;I just made some minor updates to the metric collection module I use for monitoring MySQL with Ganglia.  It collects over 100 metrics and includes a basic report like:

&lt;/p&gt;&lt;div style="text-align: center;"&gt;&lt;img src="http://static.g.raphaelli.com/images/2009/01/05/ganglia_mysql_report_sample.png" alt="MySQL selects, inserts, updates, deletes on one graph" title="Sample Ganglia MySQL Report"&gt;&lt;/div&gt;

This blog is the only thing using this MySQL server and I don't generate much traffic (hi mom!)
&lt;p&gt;&lt;/p&gt;

&lt;p&gt;It works either as a ganglia 3.1-style &lt;a href="http://ganglia.wiki.sourceforge.net/ganglia_gmond_python_modules"&gt;gmond python module&lt;/a&gt; or as a gmetric script, for use with any decent version of ganglia.  These are the relevant files:

&lt;/p&gt;&lt;ul&gt;
        &lt;li&gt;the module: &lt;a href="http://static.g.raphaelli.com/contrib/code/ganglia/mysql.py"&gt;mysql.py&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;sample module configuration file: &lt;a href="http://static.g.raphaelli.com/contrib/code/ganglia/mysql.pyconf"&gt;mysql.pyconf&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;ganglia frontend report: &lt;a href="http://static.g.raphaelli.com/contrib/code/ganglia/mysql_query_report.php"&gt;mysql_query_report.php&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;dependency module, for parsing InnoDB Status: &lt;a href="http://static.g.raphaelli.com/contrib/code/ganglia/DBUtil.py"&gt;DBUtil.py&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;/p&gt;

Comments and improvements are welcome.</content>
  </entry>
</feed>

