square/cubism — pull request #12 by rhuss (2012-06-05 20:21:56+00:00)
Title: Support for Jolokia as source

This pull request adds support for a [Jolokia](http://www.jolokia.org) source. This source is different insofar as it doesn't queries a backend for already fetched values but fetches JMX values afresh from within the client.

Please have a look at this [demo](http://www.jolokia.org/client/javascript-cubism.html) for how it looks like and how it works.

I'm still wondering whether to add Jolokia support to Cubism or vice versa. I would be happy to have it included included on a par with Graphite or Cube, but I could understand if this doesn't fit well (in which case I would include the integration directly in Jolokia)

For the patch to work, you need the latest jolokia.js 1.4-SNAPSHOT (contained in this [jar file](http://labs.consol.de/maven/snapshots-repository/org/jolokia/jolokia-client-javascript/1.0.4-SNAPSHOT/jolokia-client-javascript-1.0.4-20120605.202002-3.jar), release is coming this week) and jQuery 1.7.x

As soon as you consider it for inclusion in cubism.js, I will add the appropriate documentation to the Wiki. And yes, I'm going to support it (e.g. error management can be still improved)

Big Kudos to your for giving the world such an excellent (and unique) graphing library. Thank you!