lib/monitorex/application.ex
defmodule Monitorex.Application do
@moduledoc false
use Application
@impl true
def start(_type, _args) do
children = [
Monitorex.Collector
]
opts = [strategy: :one_for_one, name: Monitorex.Supervisor]
Supervisor.start_link(children, opts)
end
end