code: public static boolean isEnabled(Properties properties) {
      return PropertiesUtils
          .getPropAsBoolean(properties, ConfigurationKeys.METRICS_ENABLED_KEY, ConfigurationKeys.DEFAULT_METRICS_ENABLED);
    }
docs: Check whether metrics collection and reporting are enabled or not.
  
  @param properties Configuration properties
  @return whether metrics collection and reporting are enabled