Skip to content

Commit b491188

Browse files
committed
Init metric subscriptions after listeners are started
This way reporters will be automatically subscribed to all HTTP metrics.
1 parent 9b5a91f commit b491188

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ejabberd_app.erl

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ start(normal, _Args) ->
7272
%%ejabberd_debug:fprof_start(),
7373
start_services(),
7474
start_modules(),
75-
mongoose_metrics:init(),
7675
ejabberd_listener:start_listeners(),
76+
mongoose_metrics:init(),
7777
ejabberd_admin:start(),
7878
?INFO_MSG("ejabberd ~s is started in the node ~p", [?MONGOOSE_VERSION, node()]),
7979
Sup;

0 commit comments

Comments
 (0)