Current section
Files
Jump to
Current section
Files
src/erlflow_collector_sup.erl
-module(erlflow_collector_sup).
-behaviour(supervisor).
-export([start_link/0, init/1]).
start_link() ->
supervisor:start_link({local, ?MODULE}, ?MODULE, []).
init([]) ->
SupFlags = #{
strategy => simple_one_for_one,
intensity => 3,
period => 1000
},
ChildSpecs = [#{
id => erlflow_vector,
start => {erlflow_collector, start_link, []},
restart => temporary
}],
{ok, {SupFlags, ChildSpecs}}.