The Metrics related classes and interfaces in org.apache.jackrabbit.oak.stats and org.apache.jackrabbit.oak.plugins.metric are largely undocumented. Specifically it is not immediately how they should be used, how a new Stats instance should be added, what the effect this would have and how it would (or would) not be exposed (e.g. via JMX).