RavenDB-2478 added some new metrics functions