I'm not wild on using the JSON collector for this. It took 20 minutes just to find out how to get stats from MongoDB, and I'd rather not have to have downstream users go through the same process. Out of the box, this gets stats from MongoDB. "Knife goes in, guts come out." http://www.youtube.com/watch?v=Yz_gzUxfYjg

The json module is perfect for internal-ish stuff where there's lots of simple endpoints and writing 20 modules doesn't make sense. This isn't a case of that.

Output: https://gist.github.com/dafyddcrosby/6237735

And all metrics don't have to be numbers, though it's certainly a nice-to-have. In Graphite, NaNs are simply ignored. If you've got a snappy one-liner for only grabbing the integer values out of a nested hash while keeping the nesting, I'd love to see it, but frankly it really isn't necessary.