public Builder filter(MetricFilter filter) {
      this.filter = filter;
      return this;
    }
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