public static InstanceMetrics forInstance ( MetricRegistry metrics , Object instance , String serviceName ) { return new InstanceMetrics ( metrics , instance , serviceName ) ; }
Create a metrics instance that corresponds to a single instance of a class . This is useful for cases where there exists one instance per service . For example in a ServicePool .