aboutsummaryrefslogtreecommitdiff
path: root/lib/ex_prometheus_io/supervisor.ex
blob: 1cb8c660c7f35e8c23062a8beac4baf337c0dc70 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
defmodule ExPrometheusIo.Supervisor do
  use Supervisor

  def start_link() do
    Supervisor.start_link(__MODULE__, [], name: __MODULE__)
  end

  def init(_) do
    children = [
      supervisor(Task.Supervisor, [[name: ExPrometheusIo.QuerySupervisor]])
    ]

    opts = [strategy: :one_for_one]
    supervise(children, opts)
  end

end