A semantic layer for db interaction when dealing with metrics
gem install metricdb
See the tests for a reasonable run down on usage.