public static Metrics getInstance() {
    return metrics;
  }
Returns static Metrics instance, null if not initialized or closed.
standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/common/metrics/common/MetricsFactory.java