<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Xaprb &#187; graphing</title>
	<atom:link href="http://www.xaprb.com/blog/tag/graphing/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.xaprb.com/blog</link>
	<description>Stay curious!</description>
	<lastBuildDate>Thu, 09 Feb 2012 03:58:56 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>How to lie beautifully with FusionCharts</title>
		<link>http://www.xaprb.com/blog/2009/09/28/how-to-lie-beautifully-with-fusioncharts/</link>
		<comments>http://www.xaprb.com/blog/2009/09/28/how-to-lie-beautifully-with-fusioncharts/#comments</comments>
		<pubDate>Tue, 29 Sep 2009 03:14:16 +0000</pubDate>
		<dc:creator>Xaprb</dc:creator>
				<category><![CDATA[Commentary]]></category>
		<category><![CDATA[World Wide Web]]></category>
		<category><![CDATA[charting]]></category>
		<category><![CDATA[Edward Tufte]]></category>
		<category><![CDATA[FusionCharts]]></category>
		<category><![CDATA[graphing]]></category>
		<category><![CDATA[Infographics]]></category>

		<guid isPermaLink="false">http://www.xaprb.com/blog/?p=1310</guid>
		<description><![CDATA[Gotta love those three-dimensional charts. They sure are shiny! Look at this: This is a screenshot of FusionCharts graphs. But wait, on closer inspection: 5 and 7 are the same height? 6 is exactly twice as tall as 2? Pseudo-three-dimensional charts are the bane of my existence. Tufte would definitely not approve. (If you don&#8217;t [...]


<strong>Further Reading:</strong><ul><li><a href='http://www.xaprb.com/blog/2008/10/09/would-tufte-approve-of-mixing-units-on-a-graph/' rel='bookmark' title='Permanent Link: Would Tufte approve of mixing units on a graph?'>Would Tufte approve of mixing units on a graph?</a></li>
<li><a href='http://www.xaprb.com/blog/2010/01/09/review-cacti-network-monitoring-kundu-lavlu/' rel='bookmark' title='Permanent Link: A review of Cacti 0.8 Network Monitoring by Dinangkur Kundu and S. M. Ibrahim Lavlu'>A review of Cacti 0.8 Network Monitoring by Dinangkur Kundu and S. M. Ibrahim Lavlu</a></li>
<li><a href='http://www.xaprb.com/blog/2009/10/07/got-virtual-office/' rel='bookmark' title='Permanent Link: Got virtual office?'>Got virtual office?</a></li>
<li><a href='http://www.xaprb.com/blog/2007/08/24/mysql-camp-2007/' rel='bookmark' title='Permanent Link: MySQL Camp 2007'>MySQL Camp 2007</a></li>
<li><a href='http://www.xaprb.com/blog/2010/01/15/review-get-it-done-with-mysql-peter-brawley-arthur-fuller/' rel='bookmark' title='Permanent Link: A review of Get it Done with MySQL 5&#038;6 by Peter Brawley and Arthur Fuller'>A review of Get it Done with MySQL 5&#038;6 by Peter Brawley and Arthur Fuller</a></li>
</ul>]]></description>
			<content:encoded><![CDATA[<p>Gotta love those three-dimensional charts.  They sure are shiny!  Look at this:</p>

<div id="attachment_1311" class="wp-caption aligncenter" style="width: 474px"><img src="http://www.xaprb.com/blog/wp-content/uploads/2009/09/graphs.png" alt="FusionCharts graphs" title="FusionCharts graphs" width="464" height="195" class="size-full wp-image-1311" /><p class="wp-caption-text">FusionCharts graphs</p></div>

<p>This is a screenshot of <a href="http://www.fusioncharts.com/">FusionCharts graphs</a>.  But wait, on closer inspection: 5 and 7 are the same height?  6 is exactly twice as tall as 2?</p>

<p>Pseudo-three-dimensional charts are the bane of my existence.  <a href="http://www.amazon.com/Visual-Display-Quantitative-Information-2nd/dp/0961392142?tag=xaprb-20">Tufte</a> would definitely not approve. (If you don&#8217;t have <a href="http://www.amazon.com/Visual-Display-Quantitative-Information-2nd/dp/0961392142?tag=xaprb-20">The Visual Display of Quantitative Information</a>, you should really get it and give it a read.)</p>

<p><strong>Further Reading:</strong><ul><li><a href='http://www.xaprb.com/blog/2008/10/09/would-tufte-approve-of-mixing-units-on-a-graph/' rel='bookmark' title='Permanent Link: Would Tufte approve of mixing units on a graph?'>Would Tufte approve of mixing units on a graph?</a></li>
<li><a href='http://www.xaprb.com/blog/2010/01/09/review-cacti-network-monitoring-kundu-lavlu/' rel='bookmark' title='Permanent Link: A review of Cacti 0.8 Network Monitoring by Dinangkur Kundu and S. M. Ibrahim Lavlu'>A review of Cacti 0.8 Network Monitoring by Dinangkur Kundu and S. M. Ibrahim Lavlu</a></li>
<li><a href='http://www.xaprb.com/blog/2009/10/07/got-virtual-office/' rel='bookmark' title='Permanent Link: Got virtual office?'>Got virtual office?</a></li>
<li><a href='http://www.xaprb.com/blog/2007/08/24/mysql-camp-2007/' rel='bookmark' title='Permanent Link: MySQL Camp 2007'>MySQL Camp 2007</a></li>
<li><a href='http://www.xaprb.com/blog/2010/01/15/review-get-it-done-with-mysql-peter-brawley-arthur-fuller/' rel='bookmark' title='Permanent Link: A review of Get it Done with MySQL 5&#038;6 by Peter Brawley and Arthur Fuller'>A review of Get it Done with MySQL 5&#038;6 by Peter Brawley and Arthur Fuller</a></li>
</ul>]]></content:encoded>
			<wfw:commentRss>http://www.xaprb.com/blog/2009/09/28/how-to-lie-beautifully-with-fusioncharts/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>MySQL Cacti templates version 1.1.1 released</title>
		<link>http://www.xaprb.com/blog/2008/10/15/mysql-cacti-templates-version-111-released/</link>
		<comments>http://www.xaprb.com/blog/2008/10/15/mysql-cacti-templates-version-111-released/#comments</comments>
		<pubDate>Thu, 16 Oct 2008 03:21:14 +0000</pubDate>
		<dc:creator>Xaprb</dc:creator>
				<category><![CDATA[SQL]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Cacti]]></category>
		<category><![CDATA[Cacti templates]]></category>
		<category><![CDATA[graphing]]></category>
		<category><![CDATA[monitoring]]></category>

		<guid isPermaLink="false">http://www.xaprb.com/blog/?p=626</guid>
		<description><![CDATA[I&#8217;ve released version 1.1.1 of the MySQL Cacti templates I develop. The new templates work around more Cacti limitations, including the limitation on the length of the data returned from the poller script. There&#8217;s also a new graph and many other niceties since the last release. Note that there are TWO incompatible changes with the [...]


<strong>Further Reading:</strong><ul><li><a href='http://www.xaprb.com/blog/2009/10/25/version-1-1-4-of-improved-cacti-templates-released/' rel='bookmark' title='Permanent Link: Version 1.1.4 of improved Cacti templates released'>Version 1.1.4 of improved Cacti templates released</a></li>
<li><a href='http://www.xaprb.com/blog/2010/01/10/version-1-1-6-of-better-cacti-templates-released/' rel='bookmark' title='Permanent Link: Version 1.1.6 of Better Cacti Templates released'>Version 1.1.6 of Better Cacti Templates released</a></li>
<li><a href='http://www.xaprb.com/blog/2009/05/07/version-112-of-improved-cacti-templates-released/' rel='bookmark' title='Permanent Link: Version 1.1.2 of improved Cacti templates released'>Version 1.1.2 of improved Cacti templates released</a></li>
<li><a href='http://www.xaprb.com/blog/2010/04/20/version-1-1-7-of-better-cacti-templates-released/' rel='bookmark' title='Permanent Link: Version 1.1.7 of Better Cacti Templates released'>Version 1.1.7 of Better Cacti Templates released</a></li>
<li><a href='http://www.xaprb.com/blog/2009/12/13/version-1-1-5-of-improved-cacti-templates-released/' rel='bookmark' title='Permanent Link: Version 1.1.5 of improved Cacti templates released'>Version 1.1.5 of improved Cacti templates released</a></li>
</ul>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve released version 1.1.1 of the <a href="http://code.google.com/p/mysql-cacti-templates/">MySQL Cacti templates</a> I develop.  The new templates work around more Cacti limitations, including the limitation on the length of the data returned from the poller script.  There&#8217;s also a new graph and many other niceties since the last release.</p>

<span id="more-626"></span>

<p>Note that there are TWO incompatible changes with the previous version of the templates.  You don&#8217;t have to throw away your RRA files, you just have to delete and re-import over all the existing templates.  It&#8217;s not my fault, there was no other way to work around the limitations mentioned above.  Really.  Have fun upgrading!</p>

<p>Version 1.1.1 is actually just a repackaging of 1.1.0.</p>

<p>The changelog follows.</p>

<pre>
2008-10-15: version 1.1.1

	* The tarball didn't have make-template.pl mysql_definitions.pl (issue 34)

2008-10-14: version 1.1.0

	* Graphs fetched too much data, causing errors (incompatible; issue 28, 23).
	* Output of the poller script is compressed with short value names.
	* Checks can be disabled; no need to fetch INNODB STATUS if unwanted.
	* Queries could cause a MySQL thread stack overflow (issue 19).
	* Older PHP didn't have array_change_key_case function (issue 21).
	* The PROCESS privilege is required for MySQL 5.1.29 with InnoDB (issue 22).
	* Added an aggregated view of SHOW PROCESSLIST; requires PROCESS privilege.
	* The text on the graph could overflow the right-hand edge.
	* Truncated SHOW INNODB STATUS could cause an SQL error (issue 27).
	* The poller script requires proper cmdline options (incompatible change).
</pre>

<p><strong>Further Reading:</strong><ul><li><a href='http://www.xaprb.com/blog/2009/10/25/version-1-1-4-of-improved-cacti-templates-released/' rel='bookmark' title='Permanent Link: Version 1.1.4 of improved Cacti templates released'>Version 1.1.4 of improved Cacti templates released</a></li>
<li><a href='http://www.xaprb.com/blog/2010/01/10/version-1-1-6-of-better-cacti-templates-released/' rel='bookmark' title='Permanent Link: Version 1.1.6 of Better Cacti Templates released'>Version 1.1.6 of Better Cacti Templates released</a></li>
<li><a href='http://www.xaprb.com/blog/2009/05/07/version-112-of-improved-cacti-templates-released/' rel='bookmark' title='Permanent Link: Version 1.1.2 of improved Cacti templates released'>Version 1.1.2 of improved Cacti templates released</a></li>
<li><a href='http://www.xaprb.com/blog/2010/04/20/version-1-1-7-of-better-cacti-templates-released/' rel='bookmark' title='Permanent Link: Version 1.1.7 of Better Cacti Templates released'>Version 1.1.7 of Better Cacti Templates released</a></li>
<li><a href='http://www.xaprb.com/blog/2009/12/13/version-1-1-5-of-improved-cacti-templates-released/' rel='bookmark' title='Permanent Link: Version 1.1.5 of improved Cacti templates released'>Version 1.1.5 of improved Cacti templates released</a></li>
</ul>]]></content:encoded>
			<wfw:commentRss>http://www.xaprb.com/blog/2008/10/15/mysql-cacti-templates-version-111-released/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>Would Tufte approve of mixing units on a graph?</title>
		<link>http://www.xaprb.com/blog/2008/10/09/would-tufte-approve-of-mixing-units-on-a-graph/</link>
		<comments>http://www.xaprb.com/blog/2008/10/09/would-tufte-approve-of-mixing-units-on-a-graph/#comments</comments>
		<pubDate>Fri, 10 Oct 2008 01:58:22 +0000</pubDate>
		<dc:creator>Xaprb</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[Cacti]]></category>
		<category><![CDATA[Edward Tufte]]></category>
		<category><![CDATA[graphing]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[MySQL Enterprise Monitor]]></category>

		<guid isPermaLink="false">http://www.xaprb.com/blog/?p=603</guid>
		<description><![CDATA[I&#8217;ve created a set of Cacti templates for graphing stats about MySQL. While these were based on several other people&#8217;s work, there are many improvements. One of them in particular I want to bring up, and I&#8217;ll go so far as to say it ought to be a &#8220;best practice&#8221; for graphing. That is, don&#8217;t [...]


<strong>Further Reading:</strong><ul><li><a href='http://www.xaprb.com/blog/2008/03/22/whats-the-best-way-to-choose-graph-colors/' rel='bookmark' title='Permanent Link: What&#8217;s the best way to choose graph colors?'>What&#8217;s the best way to choose graph colors?</a></li>
<li><a href='http://www.xaprb.com/blog/2010/04/20/version-1-1-7-of-better-cacti-templates-released/' rel='bookmark' title='Permanent Link: Version 1.1.7 of Better Cacti Templates released'>Version 1.1.7 of Better Cacti Templates released</a></li>
<li><a href='http://www.xaprb.com/blog/2010/05/25/a-better-way-to-build-cacti-templates/' rel='bookmark' title='Permanent Link: A better way to build Cacti templates'>A better way to build Cacti templates</a></li>
<li><a href='http://www.xaprb.com/blog/2009/04/25/secure-easy-cacti-graphing-without-snmp/' rel='bookmark' title='Permanent Link: Secure, easy Cacti graphing without SNMP'>Secure, easy Cacti graphing without SNMP</a></li>
<li><a href='http://www.xaprb.com/blog/2009/05/07/version-112-of-improved-cacti-templates-released/' rel='bookmark' title='Permanent Link: Version 1.1.2 of improved Cacti templates released'>Version 1.1.2 of improved Cacti templates released</a></li>
</ul>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve created a set of <a href="http://code.google.com/p/mysql-cacti-templates/">Cacti templates for graphing stats about MySQL</a>.  While these were based on several other people&#8217;s work, there are many improvements.  One of them in particular I want to bring up, and I&#8217;ll go so far as to say it ought to be a &#8220;best practice&#8221; for graphing.  That is, don&#8217;t mix units on a graph.</p>

<span id="more-603"></span>

<p>In the simplest terms, this means that just because things are related doesn&#8217;t mean they belong together.  I made an effort to separate things onto different graphs when they have different units.  For example, the query cache metrics don&#8217;t all belong together.  There are memory metrics, there are block metrics, and there are metrics about queries.  If you jam them all together, the differences in the units will cause various graphs to obliterate each other.  Some values are much larger than others, and that&#8217;ll cause some values to be minuscule on the graph.</p>

<p>The graph templates that inspired me to create mine mashed them all together and then scaled things <a href="http://www.xkcd.com/485/">logarithmically</a> to compensate for the resulting problems.  This does not address the root of the matter.  By contrast, my templates split them apart, so all the things whose unit is &#8220;query&#8221; are on one graph together.  Then I looked at the remaining stats (units: blocks and units: bytes) and decided that in the interest of not having way too many graphs, I&#8217;d put them together.  I&#8217;m still not sure this was a great idea, and I have a nagging Tufte voice in my head.  Anyway, I tried to strike a balance in this specific case, but in general I kept things separate.</p>

<p>One of the great things about Cacti is that you can graph whatever you want.  You can graph the temperature on your server&#8217;s hard drives, or the Dow Jones Industrial Average, or whatever.  So you can have a single graphing solution for your whole company&#8217;s needs.  By contrast, MySQL Enterprise Monitor is focused on a single purpose.  So it should do a really good job at it, right?  Actually, no, they get it wrong too &#8212; they mix units.  Here you can see exactly the effect I&#8217;m talking about; one value can obliterate the other.  (You get points if you guess what&#8217;s going on in this graph.)</p>

<div id="attachment_608" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.xaprb.com/blog/wp-content/uploads/2008/10/mysql-enterprise-monitor-query-cache.png"><img src="http://www.xaprb.com/blog/wp-content/uploads/2008/10/mysql-enterprise-monitor-query-cache-300x121.png" alt="MySQL Enterprise Monitor Query Cache Graph" title="mysql-enterprise-monitor-query-cache" width="300" height="121" class="size-medium wp-image-608" /></a><p class="wp-caption-text">MySQL Enterprise Monitor Query Cache Graph</p></div>

<p>I&#8217;ve tried to make the Cacti templates for MySQL as useful as possible, and judging by the graphs I see on client sites (these templates are quite popular, independent of me or my employer) they do a pretty good job.  There&#8217;s still room for improvement, though.  I&#8217;m adding more carefully selected bits of  information into the graphs, and making them more robust to deal with bizarre errors that happen in real life.  And of course, always finding new ways to work around the limitations of PHP and Cacti, both of which have their quirks.</p>

<p>Are there wishes you have for these graphs, too?  If so, <a href="http://code.google.com/p/mysql-cacti-templates/issues/list">submit an issue report on the Google Code project</a>.  Just don&#8217;t ask me to graph unrelated things together, OK?</p>

<p>PS: sometimes things with the same units are still much bigger or smaller than each other.  That&#8217;s why my templates always print out the values in numbers along the bottom of the graph, so you can see the magnitude of the values, not just look at the lines.</p>

<p><strong>Further Reading:</strong><ul><li><a href='http://www.xaprb.com/blog/2008/03/22/whats-the-best-way-to-choose-graph-colors/' rel='bookmark' title='Permanent Link: What&#8217;s the best way to choose graph colors?'>What&#8217;s the best way to choose graph colors?</a></li>
<li><a href='http://www.xaprb.com/blog/2010/04/20/version-1-1-7-of-better-cacti-templates-released/' rel='bookmark' title='Permanent Link: Version 1.1.7 of Better Cacti Templates released'>Version 1.1.7 of Better Cacti Templates released</a></li>
<li><a href='http://www.xaprb.com/blog/2010/05/25/a-better-way-to-build-cacti-templates/' rel='bookmark' title='Permanent Link: A better way to build Cacti templates'>A better way to build Cacti templates</a></li>
<li><a href='http://www.xaprb.com/blog/2009/04/25/secure-easy-cacti-graphing-without-snmp/' rel='bookmark' title='Permanent Link: Secure, easy Cacti graphing without SNMP'>Secure, easy Cacti graphing without SNMP</a></li>
<li><a href='http://www.xaprb.com/blog/2009/05/07/version-112-of-improved-cacti-templates-released/' rel='bookmark' title='Permanent Link: Version 1.1.2 of improved Cacti templates released'>Version 1.1.2 of improved Cacti templates released</a></li>
</ul>]]></content:encoded>
			<wfw:commentRss>http://www.xaprb.com/blog/2008/10/09/would-tufte-approve-of-mixing-units-on-a-graph/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Screenshots of improved MySQL Cacti templates</title>
		<link>http://www.xaprb.com/blog/2008/05/25/screenshots-of-improved-mysql-cacti-templates/</link>
		<comments>http://www.xaprb.com/blog/2008/05/25/screenshots-of-improved-mysql-cacti-templates/#comments</comments>
		<pubDate>Sun, 25 May 2008 18:10:00 +0000</pubDate>
		<dc:creator>Xaprb</dc:creator>
				<category><![CDATA[SQL]]></category>
		<category><![CDATA[Sys Admin]]></category>
		<category><![CDATA[Cacti]]></category>
		<category><![CDATA[Cacti templates]]></category>
		<category><![CDATA[graphing]]></category>
		<category><![CDATA[monitoring]]></category>
		<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://www.xaprb.com/blog/2008/05/25/screenshots-of-improved-mysql-cacti-templates/</guid>
		<description><![CDATA[I finally have some images to show you what my improved Cacti templates look like. These aren&#8217;t a perfect demo, since for example this server doesn&#8217;t have the query cache enabled, but it should show you what I&#8217;ve done. Note, for example, that each graph is labeled with the actual values of the images drawn [...]


<strong>Further Reading:</strong><ul><li><a href='http://www.xaprb.com/blog/2008/04/27/improved-cacti-monitoring-templates-for-mysql/' rel='bookmark' title='Permanent Link: Improved Cacti monitoring templates for MySQL'>Improved Cacti monitoring templates for MySQL</a></li>
<li><a href='http://www.xaprb.com/blog/2009/10/25/version-1-1-4-of-improved-cacti-templates-released/' rel='bookmark' title='Permanent Link: Version 1.1.4 of improved Cacti templates released'>Version 1.1.4 of improved Cacti templates released</a></li>
<li><a href='http://www.xaprb.com/blog/2009/05/07/version-112-of-improved-cacti-templates-released/' rel='bookmark' title='Permanent Link: Version 1.1.2 of improved Cacti templates released'>Version 1.1.2 of improved Cacti templates released</a></li>
<li><a href='http://www.xaprb.com/blog/2009/12/13/version-1-1-5-of-improved-cacti-templates-released/' rel='bookmark' title='Permanent Link: Version 1.1.5 of improved Cacti templates released'>Version 1.1.5 of improved Cacti templates released</a></li>
<li><a href='http://www.xaprb.com/blog/2008/10/15/mysql-cacti-templates-version-111-released/' rel='bookmark' title='Permanent Link: MySQL Cacti templates version 1.1.1 released'>MySQL Cacti templates version 1.1.1 released</a></li>
</ul>]]></description>
			<content:encoded><![CDATA[<p>I finally have some images to show you what my <a href="http://code.google.com/p/mysql-cacti-templates/">improved Cacti templates</a> look like.</p>

<p>These aren&#8217;t a perfect demo, since for example this server doesn&#8217;t have the query cache enabled, but it should show you what I&#8217;ve done.  Note, for example, that each graph is labeled  with the actual values of the images drawn on it.  You don&#8217;t have to guess what the values are by squinting at the graphs.</p>

<p>You can click on any image to go to a larger version.  Enjoy:</p>

<p><a href='http://www.xaprb.com/blog/wp-content/uploads/2008/05/graph_image_016.png' title='InnoDB Buffer Pool Activity'><img src='http://www.xaprb.com/blog/wp-content/uploads/2008/05/graph_image_016.thumbnail.png' alt='InnoDB Buffer Pool Activity' /></a>
<a href='http://www.xaprb.com/blog/wp-content/uploads/2008/05/graph_image_022.png' title='InnoDB Buffer Pool'><img src='http://www.xaprb.com/blog/wp-content/uploads/2008/05/graph_image_022.thumbnail.png' alt='InnoDB Buffer Pool' /></a>
<a href='http://www.xaprb.com/blog/wp-content/uploads/2008/05/graph_image_003.png' title='InnoDB I/O'><img src='http://www.xaprb.com/blog/wp-content/uploads/2008/05/graph_image_003.thumbnail.png' alt='InnoDB I/O' /></a>
<a href='http://www.xaprb.com/blog/wp-content/uploads/2008/05/graph_image_005.png' title='InnoDB I/O Pending'><img src='http://www.xaprb.com/blog/wp-content/uploads/2008/05/graph_image_005.thumbnail.png' alt='InnoDB I/O Pending' /></a>
<a href='http://www.xaprb.com/blog/wp-content/uploads/2008/05/graph_image_012.png' title='InnoDB Insert Buffer'><img src='http://www.xaprb.com/blog/wp-content/uploads/2008/05/graph_image_012.thumbnail.png' alt='InnoDB Insert Buffer' /></a>
<a href='http://www.xaprb.com/blog/wp-content/uploads/2008/05/graph_image_024.png' title='InnoDB Log'><img src='http://www.xaprb.com/blog/wp-content/uploads/2008/05/graph_image_024.thumbnail.png' alt='InnoDB Log' /></a>
<a href='http://www.xaprb.com/blog/wp-content/uploads/2008/05/graph_image_002.png' title='InnoDB Row Operations'><img src='http://www.xaprb.com/blog/wp-content/uploads/2008/05/graph_image_002.thumbnail.png' alt='InnoDB Row Operations' /></a>
<a href='http://www.xaprb.com/blog/wp-content/uploads/2008/05/graph_image_017.png' title='InnoDB Semaphores'><img src='http://www.xaprb.com/blog/wp-content/uploads/2008/05/graph_image_017.thumbnail.png' alt='InnoDB Semaphores' /></a>
<a href='http://www.xaprb.com/blog/wp-content/uploads/2008/05/graph_image_006.png' title='InnoDB Transactions'><img src='http://www.xaprb.com/blog/wp-content/uploads/2008/05/graph_image_006.thumbnail.png' alt='InnoDB Transactions' /></a>
<a href='http://www.xaprb.com/blog/wp-content/uploads/2008/05/graph_image_021.png' title='MyISAM Indexes'><img src='http://www.xaprb.com/blog/wp-content/uploads/2008/05/graph_image_021.thumbnail.png' alt='MyISAM Indexes' /></a>
<a href='http://www.xaprb.com/blog/wp-content/uploads/2008/05/graph_image_013.png' title='MySQL Binary/Relay Logs'><img src='http://www.xaprb.com/blog/wp-content/uploads/2008/05/graph_image_013.thumbnail.png' alt='MySQL Binary/Relay Logs' /></a>
<a href='http://www.xaprb.com/blog/wp-content/uploads/2008/05/graph_image_010.png' title='MySQL Command Counters'><img src='http://www.xaprb.com/blog/wp-content/uploads/2008/05/graph_image_010.thumbnail.png' alt='MySQL Command Counters' /></a>
<a href='http://www.xaprb.com/blog/wp-content/uploads/2008/05/graph_image_020.png' title='MySQL Connections'><img src='http://www.xaprb.com/blog/wp-content/uploads/2008/05/graph_image_020.thumbnail.png' alt='MySQL Connections' /></a>
<a href='http://www.xaprb.com/blog/wp-content/uploads/2008/05/graph_image_004.png' title='MySQL Files and Tables'><img src='http://www.xaprb.com/blog/wp-content/uploads/2008/05/graph_image_004.thumbnail.png' alt='MySQL Files and Tables' /></a>
<a href='http://www.xaprb.com/blog/wp-content/uploads/2008/05/graph_image_023.png' title='MySQL Network Traffic'><img src='http://www.xaprb.com/blog/wp-content/uploads/2008/05/graph_image_023.thumbnail.png' alt='MySQL Network Traffic' /></a>
<a href='http://www.xaprb.com/blog/wp-content/uploads/2008/05/graph_image_014.png' title='MySQL Query Cache'><img src='http://www.xaprb.com/blog/wp-content/uploads/2008/05/graph_image_014.thumbnail.png' alt='MySQL Query Cache' /></a>
<a href='http://www.xaprb.com/blog/wp-content/uploads/2008/05/graph_image_026.png' title='MySQL Query Cache Memory'><img src='http://www.xaprb.com/blog/wp-content/uploads/2008/05/graph_image_026.thumbnail.png' alt='MySQL Query Cache Memory' /></a>
<a href='http://www.xaprb.com/blog/wp-content/uploads/2008/05/graph_image_015.png' title='MySQL Replication'><img src='http://www.xaprb.com/blog/wp-content/uploads/2008/05/graph_image_015.thumbnail.png' alt='MySQL Replication' /></a>
<a href='http://www.xaprb.com/blog/wp-content/uploads/2008/05/graph_image_019.png' title='MySQL Select Types'><img src='http://www.xaprb.com/blog/wp-content/uploads/2008/05/graph_image_019.thumbnail.png' alt='MySQL Select Types' /></a>
<a href='http://www.xaprb.com/blog/wp-content/uploads/2008/05/graph_image_007.png' title='MySQL Sorts'><img src='http://www.xaprb.com/blog/wp-content/uploads/2008/05/graph_image_007.thumbnail.png' alt='MySQL Sorts' /></a>
<a href='http://www.xaprb.com/blog/wp-content/uploads/2008/05/graph_image_011.png' title='MySQL Table Locks'><img src='http://www.xaprb.com/blog/wp-content/uploads/2008/05/graph_image_011.thumbnail.png' alt='MySQL Table Locks' /></a>
<a href='http://www.xaprb.com/blog/wp-content/uploads/2008/05/graph_image_025.png' title='MySQL Temporary Objects'><img src='http://www.xaprb.com/blog/wp-content/uploads/2008/05/graph_image_025.thumbnail.png' alt='MySQL Temporary Objects' /></a></p>

<p>Enjoy!</p>

<p><strong>Further Reading:</strong><ul><li><a href='http://www.xaprb.com/blog/2008/04/27/improved-cacti-monitoring-templates-for-mysql/' rel='bookmark' title='Permanent Link: Improved Cacti monitoring templates for MySQL'>Improved Cacti monitoring templates for MySQL</a></li>
<li><a href='http://www.xaprb.com/blog/2009/10/25/version-1-1-4-of-improved-cacti-templates-released/' rel='bookmark' title='Permanent Link: Version 1.1.4 of improved Cacti templates released'>Version 1.1.4 of improved Cacti templates released</a></li>
<li><a href='http://www.xaprb.com/blog/2009/05/07/version-112-of-improved-cacti-templates-released/' rel='bookmark' title='Permanent Link: Version 1.1.2 of improved Cacti templates released'>Version 1.1.2 of improved Cacti templates released</a></li>
<li><a href='http://www.xaprb.com/blog/2009/12/13/version-1-1-5-of-improved-cacti-templates-released/' rel='bookmark' title='Permanent Link: Version 1.1.5 of improved Cacti templates released'>Version 1.1.5 of improved Cacti templates released</a></li>
<li><a href='http://www.xaprb.com/blog/2008/10/15/mysql-cacti-templates-version-111-released/' rel='bookmark' title='Permanent Link: MySQL Cacti templates version 1.1.1 released'>MySQL Cacti templates version 1.1.1 released</a></li>
</ul>]]></content:encoded>
			<wfw:commentRss>http://www.xaprb.com/blog/2008/05/25/screenshots-of-improved-mysql-cacti-templates/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
		<item>
		<title>Improved Cacti monitoring templates for MySQL</title>
		<link>http://www.xaprb.com/blog/2008/04/27/improved-cacti-monitoring-templates-for-mysql/</link>
		<comments>http://www.xaprb.com/blog/2008/04/27/improved-cacti-monitoring-templates-for-mysql/#comments</comments>
		<pubDate>Mon, 28 Apr 2008 00:43:18 +0000</pubDate>
		<dc:creator>Xaprb</dc:creator>
				<category><![CDATA[Alexey Kovyrin]]></category>
		<category><![CDATA[Cacti]]></category>
		<category><![CDATA[Cacti templates]]></category>
		<category><![CDATA[graphing]]></category>
		<category><![CDATA[monitoring]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Rimm Kaufman Group]]></category>

		<guid isPermaLink="false">http://www.xaprb.com/blog/2008/04/27/improved-cacti-monitoring-templates-for-mysql/</guid>
		<description><![CDATA[Download MySQL Cacti templates As promised, I&#8217;ve created some improved software for monitoring MySQL via Cacti. I began using the de facto MySQL Cacti templates a while ago, but found some things I needed to improve about them. As time passed, I rewrote everything from scratch. The resulting templates are much improved. You can grab [...]


<strong>Further Reading:</strong><ul><li><a href='http://www.xaprb.com/blog/2009/10/25/version-1-1-4-of-improved-cacti-templates-released/' rel='bookmark' title='Permanent Link: Version 1.1.4 of improved Cacti templates released'>Version 1.1.4 of improved Cacti templates released</a></li>
<li><a href='http://www.xaprb.com/blog/2008/05/25/screenshots-of-improved-mysql-cacti-templates/' rel='bookmark' title='Permanent Link: Screenshots of improved MySQL Cacti templates'>Screenshots of improved MySQL Cacti templates</a></li>
<li><a href='http://www.xaprb.com/blog/2009/12/13/version-1-1-5-of-improved-cacti-templates-released/' rel='bookmark' title='Permanent Link: Version 1.1.5 of improved Cacti templates released'>Version 1.1.5 of improved Cacti templates released</a></li>
<li><a href='http://www.xaprb.com/blog/2009/05/07/version-112-of-improved-cacti-templates-released/' rel='bookmark' title='Permanent Link: Version 1.1.2 of improved Cacti templates released'>Version 1.1.2 of improved Cacti templates released</a></li>
<li><a href='http://www.xaprb.com/blog/2008/06/01/mysql-cacti-templates-100-released/' rel='bookmark' title='Permanent Link: MySQL Cacti templates 1.0.0 released'>MySQL Cacti templates 1.0.0 released</a></li>
</ul>]]></description>
			<content:encoded><![CDATA[<p class="download"><a href="http://code.google.com/p/mysql-cacti-templates/source/browse/trunk">Download MySQL Cacti templates</a></p>

<p>As promised, I&#8217;ve created some improved software for monitoring MySQL via <a href="http://www.cacti.net/">Cacti</a>.  I began using the <a href="http://faemalia.net/mysqlUtils/">de facto MySQL Cacti templates</a> a while ago, but found some things I needed to improve about them.  As time passed, I rewrote everything from scratch.  The resulting templates are much improved.</p>

<p>You can grab the templates by browsing the source repository on the project&#8217;s homepage.</p>

<p>In no particular order, here are some things I improved:</p>

<ul>
<li>Standard polling interval and graph size by default.</li>
<li>Full captions on every graph; you don&#8217;t have to guess at how big the values are.  Each graph has current, max, and average values printed at the bottom for every value on it.</li>
<li>Much more data is captured.  I&#8217;ve graphed almost everything I could think of.</li>
<li>The graphs are grouped better.  Most graphs have only related values.  There are some exceptions, but not many.</li>
<li>The templates don&#8217;t hijack your existing installation.  They don&#8217;t depend on or alter anything in your default Cacti installation.</li>
<li>The script that gathers the data is totally rewritten from scratch, and much improved.  For example, <a href="http://www.mysqlperformanceblog.com/2007/03/27/integers-in-php-running-with-scissors-and-portability/">the math works on 32-bit systems</a>.  It has caching built-in so <a href="http://forums.cacti.net/viewtopic.php?t=26448">each poll cycle results in just one request to the server, instead of one request per graph</a>.  (This is a weakness of Cacti I&#8217;m trying to work around).  It also has debugging aids and other good coding stuff.</li>
<li>By default, it assumes you have the same username and password across every server you&#8217;re monitoring, so you don&#8217;t have to fill in a username and password for every single graph you create.</li>
<li>One data template == one graph template.  This helps work around another Cacti limitation.</li>
<li>Lots more.  Honestly I can&#8217;t really remember everything I&#8217;ve done.  I&#8217;m sure you&#8217;ll help me remember by asking me how to get X feature working the way you want, and I&#8217;ll go &#8220;oh, yeah, that&#8217;s another thing I improved&#8230;&#8221;</li>
</ul>

<p>Cacti templates are very laborious to create if they&#8217;re complex at all; it takes a long time and is very error-prone.  Instead of doing it through Cacti&#8217;s web interface and exporting a huge XML file, I eliminated the redundancies and created a small, easy-to-maintain file from which I generate the XML template with a Perl script.  This gives the added benefit of letting me (or you) generate templates with different parameters such as polling interval or graph size.  The README file has the full details.  However, I&#8217;ve pre-generated a set of templates that matches Cacti&#8217;s defaults, so you can probably just use that.</p>

<p>This has taken a lot of time.  In particular, I spent a lot of time working on it at my former employer, <a href="http://www.rimmkaufman.com">The Rimm-Kaufman Group</a> (kudos to them for letting me open-source the work) and I just spent most of my weekend writing the scripts to convert from the compact format to XML templates, so it&#8217;s possible to maintain these beasts.  Plus I had to develop the compact format, too.   This took a lot of time because I had to understand the Cacti data model, which is pretty complex.</p>

<p><strong>Please enter issue reports for bugs, feature requests, etc at the <a href="http://code.google.com/p/mysql-cacti-templates/issues/list">Google project homepage</a>, <em>not</em> in the comments of this blog post</strong>.  I do not look through comments on my blog when I&#8217;m trying to remember what I should be working on for a software project.</p>

<p>If these templates help you and you feel like <a href="http://www.amazon.com/gp/registry/wishlist/LOE4ZUTKFU39">visiting my Amazon.com wishlist and sending something my way</a>, I&#8217;d appreciate it!</p>

<p><small>PS: You may also be interested in <a href="http://blog.kovyrin.net/2007/10/06/useful-cacti-templates-to-monitor-your-servers/">Alexey Kovyrin&#8217;s list of templates for monitoring servers</a>.</small></p>

<p><strong>Further Reading:</strong><ul><li><a href='http://www.xaprb.com/blog/2009/10/25/version-1-1-4-of-improved-cacti-templates-released/' rel='bookmark' title='Permanent Link: Version 1.1.4 of improved Cacti templates released'>Version 1.1.4 of improved Cacti templates released</a></li>
<li><a href='http://www.xaprb.com/blog/2008/05/25/screenshots-of-improved-mysql-cacti-templates/' rel='bookmark' title='Permanent Link: Screenshots of improved MySQL Cacti templates'>Screenshots of improved MySQL Cacti templates</a></li>
<li><a href='http://www.xaprb.com/blog/2009/12/13/version-1-1-5-of-improved-cacti-templates-released/' rel='bookmark' title='Permanent Link: Version 1.1.5 of improved Cacti templates released'>Version 1.1.5 of improved Cacti templates released</a></li>
<li><a href='http://www.xaprb.com/blog/2009/05/07/version-112-of-improved-cacti-templates-released/' rel='bookmark' title='Permanent Link: Version 1.1.2 of improved Cacti templates released'>Version 1.1.2 of improved Cacti templates released</a></li>
<li><a href='http://www.xaprb.com/blog/2008/06/01/mysql-cacti-templates-100-released/' rel='bookmark' title='Permanent Link: MySQL Cacti templates 1.0.0 released'>MySQL Cacti templates 1.0.0 released</a></li>
</ul>]]></content:encoded>
			<wfw:commentRss>http://www.xaprb.com/blog/2008/04/27/improved-cacti-monitoring-templates-for-mysql/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
	</channel>
</rss>

