codahale/metrics — pull request #170 by cb372 (2012-02-29 01:06:05+00:00)
Title: Integrated Hyperic Sigar to provide OS metrics

I've added a module `metrics-sigar` that uses native libraries to provide various data that cannot be retrieved using pure Java. Have a look at metrics-sigar/README.md for details on what it does and how to use it.

The module is designed to be used as an optional extension to Metrics. It depends on `metrics-core` and Hyperic Sigar (Apache 2.0 licence).

Perhaps integration is too kind a word for this, as it's really just a bunch of POJOs (similar to the existing `VirtualMachineMetrics` class), with the option to register some of the more interesting data as `Gauge`s.

Also the reliance on native libs means that using the module becomes slightly more messy than simply adding a dependency tag to a pom.

Anyway, I'm sending this pull request in case you're interested. But if you don't think it belongs inside Metrics then I totally understand. I can easily convert it to a standalone project.

There is still a huge amount of Sigar functionality that I have not yet ported. Hopefully in the future I will add support for some more metrics.