chore: add next_push_ms to emqx_prometheus:info/0

This commit is contained in:
Zhongwen Deng 2022-10-26 18:03:01 +08:00
parent 1757342e5b
commit 97124be63a
1 changed files with 2 additions and 2 deletions

View File

@ -83,8 +83,8 @@ init([]) ->
#{interval := Interval} = opts(), #{interval := Interval} = opts(),
{ok, #{timer => ensure_timer(Interval), ok => 0, failed => 0}}. {ok, #{timer => ensure_timer(Interval), ok => 0, failed => 0}}.
handle_call(info, _From, State) -> handle_call(info, _From, State = #{timer := Timer}) ->
{reply, State#{opts => opts()}, State}; {reply, State#{opts => opts(), next_push_ms => erlang:read_timer(Timer)}, State};
handle_call(_Msg, _From, State) -> handle_call(_Msg, _From, State) ->
{reply, ok, State}. {reply, ok, State}.