diff options
Diffstat (limited to 'lib/ex_prometheus_io/query.ex')
-rw-r--r-- | lib/ex_prometheus_io/query.ex | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/ex_prometheus_io/query.ex b/lib/ex_prometheus_io/query.ex index 20b01a9..0c346b5 100644 --- a/lib/ex_prometheus_io/query.ex +++ b/lib/ex_prometheus_io/query.ex @@ -7,8 +7,9 @@ defmodule ExPrometheusIo.Query do |> send_results(query_ref, owner) end + @http Application.get_env(:ex_prometheus_io, :http_client) || :httpc defp fetch_json(uri) do - {:ok, {_, _, body}} = :httpc.request(uri |> String.to_char_list()) + {:ok, {_, _, body}} = @http.request(uri |> String.to_char_list()) body end |