public static Builder forRegistry(MetricRegistry registry, Configuration conf) {
    return new Builder(registry, conf);
  }
A metrics reporter for Metrics that dumps metrics periodically into
a file in JSON format.
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/metrics/JsonReporter.java