<?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>A Day At The Races &#187; monitoring</title>
	<atom:link href="http://blog.jetztgrad.net/category/monitoring/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.jetztgrad.net</link>
	<description>Programming was my first love, and it will be my last.</description>
	<lastBuildDate>Mon, 26 Jul 2010 22:27:41 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>(Temporarily) pulling the plug on Grails Monitor Plugin</title>
		<link>http://blog.jetztgrad.net/2008/02/temporarily-pulling-the-plug-on-grails-monitor-plugin/</link>
		<comments>http://blog.jetztgrad.net/2008/02/temporarily-pulling-the-plug-on-grails-monitor-plugin/#comments</comments>
		<pubDate>Fri, 22 Feb 2008 13:04:00 +0000</pubDate>
		<dc:creator>jetztgradnet</dc:creator>
				<category><![CDATA[grails]]></category>
		<category><![CDATA[monitoring]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[release]]></category>

		<guid isPermaLink="false">http://blog.jetztgrad.net/?p=7</guid>
		<description><![CDATA[I&#8217;m terribly sorry, but I have to (at least temporarily) pull the plug on Monitor Plugin due to possible conflicts with my employer.
In my professional live I&#8217;m working on high availability and monitoring software. When I showed the plugin to my employer,he asked me to suspend any activities regarding the plugin, until they decide whether [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m terribly sorry, but I have to (at least temporarily) pull the plug on Monitor Plugin due to possible conflicts with my employer.</p>
<p>In my professional live I&#8217;m working on high availability and monitoring software. When I showed the plugin to my employer,<br />he asked me to suspend any activities regarding the plugin, until they decide whether this conflicts with our products.</p>
<p>I hope I will be able to continue with the monitor plugin, but until this issue is resolved, I have removed both sources and<br />downloads. </p>
<p>Regards,</p>
<p>Wolfgang</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.jetztgrad.net/2008/02/temporarily-pulling-the-plug-on-grails-monitor-plugin/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Grails Monitor plugin 0.1 released</title>
		<link>http://blog.jetztgrad.net/2008/02/grails-monitor-plugin-0-1-released/</link>
		<comments>http://blog.jetztgrad.net/2008/02/grails-monitor-plugin-0-1-released/#comments</comments>
		<pubDate>Wed, 20 Feb 2008 01:25:00 +0000</pubDate>
		<dc:creator>jetztgradnet</dc:creator>
				<category><![CDATA[grails]]></category>
		<category><![CDATA[monitoring]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[release]]></category>

		<guid isPermaLink="false">http://blog.jetztgrad.net/?p=6</guid>
		<description><![CDATA[Just in time for the upcoming 2008 Groovy/Grails Experience, I released my Grails Monitor plugin in version 0.1 (Apache License).
It&#8217;s basically a preview version, but for anybody who was dying to get his or her hands on it, the Grails wiki has all the details on how to install and use the Monitor plugin. For [...]]]></description>
			<content:encoded><![CDATA[<p>Just in time for the upcoming 2008 <a href="http://groovygrails.com/gg/2gexperience">Groovy/Grails Experience</a>, I released my Grails Monitor plugin in version 0.1 (Apache License).</p>
<p>It&#8217;s basically a preview version, but for anybody who was dying to get his or her hands on it, the <a href="http://docs.codehaus.org/display/GRAILS/Monitor+plugin">Grails wiki</a> has all the details on how to install and use the Monitor plugin. For an introduction, see my <a href="/2008/02/introducing-grails-monitor-plugin.html">previous post</a>.</p>
<p>Installation is still a little clumsy as you have to jump through a few hoops because some patches to Grails and the Quartz plugin are needed in order to get the monitor plugin installed and running.</p>
<p>Lots of features are still missing, but for a first version it&#8217;s not too bad. I&#8217;m open to suggestions, criticism and usability reports. Of course, patches are most welcome <img src='http://blog.jetztgrad.net/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>Happy monitoring,</p>
<p>Wolfgang</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.jetztgrad.net/2008/02/grails-monitor-plugin-0-1-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Introducing the Grails Monitor Plugin</title>
		<link>http://blog.jetztgrad.net/2008/02/introducing-the-grails-monitor-plugin/</link>
		<comments>http://blog.jetztgrad.net/2008/02/introducing-the-grails-monitor-plugin/#comments</comments>
		<pubDate>Thu, 14 Feb 2008 01:15:00 +0000</pubDate>
		<dc:creator>jetztgradnet</dc:creator>
				<category><![CDATA[grails]]></category>
		<category><![CDATA[monitoring]]></category>
		<category><![CDATA[plugin]]></category>

		<guid isPermaLink="false">http://blog.jetztgrad.net/?p=5</guid>
		<description><![CDATA[Grails is a fantastic web framework based on Groovy, which brings the convention-over-configuration paradigm pioneered by Ruby on Rails to the Java world. There is currently a lot of buzz around Grails and so far I had a lot of fun working with the framework.
One aspect of Grails is easy extensibility using plugins. There are [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://grails.org/">Grails</a> is a fantastic web framework based on <a href="http://groovy.codehaus.org/">Groovy</a>, which brings the convention-over-configuration paradigm pioneered by <a href="http://www.rubyonrails.org/">Ruby on Rails</a> to the Java world. There is currently a lot of <a href="http://groovyblogs.org/">buzz</a> around Grails and so far I had a lot of fun working with the framework.</p>
<p>One aspect of Grails is easy extensibility using plugins. There are already some <a href="http://grails.org/Plugins">plugins</a>, which cover a lot of functionality. I have been working on a plugin of my own, a generic monitoring plugin, which will be released shortly under a Apache License.</p>
<p>The monitoring plugin provides pre-defined monitors for many aspects of a web application. Additionally it is really easy to define your own monitors to track usage of application-specific metrics.</p>
<p>The plugin is based around <a href="https://rrd4j.dev.java.net/">rr4j</a>, which is a Java port of the well-known <a href="http://rrdtool.org/">RRDTool</a> and uses its data storage and graphing engine. It requires the <a href="http://grails.org/Quartz+plugin">Quartz Plugin</a> (with my patches for <a href="http://jira.codehaus.org/browse/GRAILSPLUGINS-190">GRAILSPLUGINS-190</a> and <a href="http://jira.codehaus.org/browse/GRAILSPLUGINS-213">GRAILSPLUGINS-213</a>) and Java 1.5 or greater.</p>
<p><span style="font-weight: bold;">So, what does it look like?</span> Some Screenshots (click for bigger image):</p>
<div style="text-align: center;">The monitor view showing the System group:</div>
<p><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://blogfiles.jimone.org/grails-monitor/system.png"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px;" src="http://blogfiles.jimone.org/grails-monitor/system.png" alt="" border="0" /></a>
<div style="text-align: center;">The Web group with the Requests graphs:</div>
<p><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://blogfiles.jimone.org/grails-monitor/web-requests.png"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px;" src="http://blogfiles.jimone.org/grails-monitor/web-requests.png" alt="" border="0" /></a>
<div style="text-align: center;">The Web group with the UserAgent graphs:</div>
<p><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://blogfiles.jimone.org/grails-monitor/web-useragent.png"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px;" src="http://blogfiles.jimone.org/grails-monitor/web-useragent.png" alt="" border="0" /></a></p>
<p><span style="font-weight: bold;">So, how do I define a monitor of my own?</span> Following the Grails philosophy of convention over configuration, the monitor plugin defines its own artefact type: Monitor.</p>
<p>Creating an application-specific monitor involves defining a class ending in &#8216;Monitor&#8217; in the ./grails-app/monitor/ directory and adding some simple elements:</p>
<pre name="code" class="groovy">class SessionMonitor implements HttpSessionListener {  def activeSessions = 0L

  static monitorName = 'Sessions'  static monitorGroup = 'Web'  static monitorDescription = """The ${monitorName} monitor contains information regarding active sessions."""

  static monitorDefs = {     'activeSessions'( type:'gauge', aggregation:'avg', min:0) {        description = "Number of active sessions"     }  }

  static monitorGraphDefs = {     'activeSessions'() {        title = '''Active sessions'''        description = title

        // graph sources        source(id:'activeSessions', metric:'activeSessions', aggregation:'average')

        // what to draw        area(id:'activeSessions', legend:true)     }  }

  void sessionCreated(HttpSessionEvent se) {     activeSessions++  }

  void sessionDestroyed(HttpSessionEvent se) {     if (activeSessions > 0) {        activeSessions--     }  }}</pre>
<p>The monitor class specifies a name (monitorName), a group it belongs to (monitorGroup, e.g. &#8216;Web&#8217;, &#8216;System&#8217;, or &#8216;Application&#8217;) and optionally a description (monitorDescription). Two DSLs, one for metrics (monitorDefs), one for graphs (monitorGraphDefs), allow to specify the monitored values and what the graphs should look like. Values are collected periodically (currently every minute) using a Quartz-controlled job.</p>
<p>Details will follow once the plugin is released. It still needs some work for the UI and behind the scenes, but a first version will be available soon.</p>
<p><b>Roadmap</b></p>
<p>I have plenty of ideas for additional features and monitors.</p>
<p>Features:</p>
<p>JMX export<br />XML/JSON/CSV export<br />Support for non-numeric data (e.g. Java version, OS name, hostname, &#8230;)<br />Possibly storage backends other than RRD4J (e.g. a database)<br />Notification via EMail when certain thresholds are exceeded<br />Integration of other graphing solutions, like <a href="http://groovy.dzone.com/news/charting-jfreechart-groovy">JFreeChart</a></p>
<p>Monitors:</p>
<p>Count per Domain object<br />Requests by controller/action<br />Database/GORM query stats (using Hibernate statistics)<br />Special monitors for some databases (MySQL &#8220;SHOW STATS&#8221;, &#8230;)<br />Security monitor for JSecurity/ACEGI/CAS plugins<br />Monitor for Quartz jobs (job runs, min/max/avg duration)</p>
<p>Basically, the idea is, that every plugin would provide its own set of monitors for the contributed functionality.</p>
<p>I you have any other idea, advice, or feature requests please feel free to post a comment below.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.jetztgrad.net/2008/02/introducing-the-grails-monitor-plugin/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
	</channel>
</rss>
