Over a million developers have joined DZone.

fusemetrics - Build Metrics Dashboard

· Agile Zone

Learn more about how DevOps teams must adopt a more agile development process, working in parallel instead of waiting on other teams to finish their components or for resources to become available, brought to you in partnership with CA Technologies.

If you have been using CI for quite sometime, you probably have a wide array of metrics for your projects - code coverage, complexity, coupling, bugs, tests, suspicious code, style violations, copy/paste detectors, performance measurements, dependency analysis and more.

And with all those metrics, it can be a struggle to get a single, simple view of what's going on with your project, and, perhaps more importantly, how your project's metrics are changing over time.

That's why we built FuseMetrics. It analyzes your metrics data, and produces a single page view of whichever metrics you find interesting, including trending graphs and some histographic analysis of your entire codebase. It's open source, extendable, and easy to use.

Who are the creators?
FuseMetrics was written primarily by John Brothers and Meera Subbarao, based on original concepts by Andrew Glover.

What does it do?
FuseMetrics produces sparkline graphs of metrics values over time, and histograms of the characteristics of the overall code base. Combines them together to produce a single-page dashboard (screenshot) that you can customize to your heart's content.

FuseMetrics is written in Groovy, and can parse the reports of many of the most common analysis tools:

    * Junit
    * TestNG
    * JDepend
    * Checkstyle
    * PMD
    * JavaNCSS
    * FindBugs
    * Simian
    * Clover
    * Cobertura

And, because of a basic plugin architecture, it can be extended to support just about any other tool, as long as the output is well-formed.

How does it work?
FuseMetrics analyzes the .xml files from your existing metrics - Checkstyle, CPD, PMD, FindBugs, JDepend, JUnit, Clover, Cobertura and many more, and pulls in the top-level metrics from those tools. It uses a plugin architecture, so new metrics and changes to XML structure can be easily supported.

As it gathers metrics, it stores them in memory, so it can produce Sparkline trend graphs and histograms of the overall code base.

Lastly, it builds a simple template-based dashboard HTML page, where all these graphs and metrics can be combined into one view.

It’s completely open source. Download the source code from here. Details about fusemetrics can be found here.  As always, try out and keep us posted if you have any questions.

Discover the warning signs of DevOps Dysfunction and learn how to get back on the right track, brought to you in partnership with CA Technologies.


Opinions expressed by DZone contributors are their own.

The best of DZone straight to your inbox.

Please provide a valid email address.

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}