Current section

Files

Jump to
prometheus src prometheus.erl
Raw

src/prometheus.erl

%%%-------------------------------------------------------------------
%% @doc prometheus public API
%% @end
%%%-------------------------------------------------------------------
-module(prometheus).
-behaviour(application).
%% Application callbacks
-export([start/2
,stop/1]).
-export([start/0, stop/0]).
-define(APP, ?MODULE).
%%====================================================================
%% API
%%====================================================================
start(_StartType, _StartArgs) ->
prometheus_sup:start_link().
%%--------------------------------------------------------------------
stop(_State) ->
ok.
start() ->
application:start(?APP).
stop() ->
application:stop(?APP).
%%====================================================================
%% Internal functions
%%====================================================================