 
   def metrics(remote_node = %{local?: false}) do
     remote_node
-    |> call("/metrics/n/local")
+    |> call("#{@remote_url_prefix}/metrics/n/local")
   end
 
   def metrics(%{local?: true}) do

    local?: false,
  ]

  @spec call(map, endpoint :: String.t) :: String.t | :error
  defp call(%{host: host, port: port}, endpoint) do
    request =

  @spec api(remote_node :: map, path :: String.t) :: String.t | :error
  def api(remote_node, path) do
    remote_node
    |> call("#{@remote_url_prefix}/api" <> path)
  end

  @spec socket_proxy(atom | map) :: {pid, String.t} | {:error, String.t}
