chore: add next_push_ms to emqx_prometheus:info/0
This commit is contained in:
parent
1757342e5b
commit
97124be63a
|
@ -83,8 +83,8 @@ init([]) ->
|
|||
#{interval := Interval} = opts(),
|
||||
{ok, #{timer => ensure_timer(Interval), ok => 0, failed => 0}}.
|
||||
|
||||
handle_call(info, _From, State) ->
|
||||
{reply, State#{opts => opts()}, State};
|
||||
handle_call(info, _From, State = #{timer := Timer}) ->
|
||||
{reply, State#{opts => opts(), next_push_ms => erlang:read_timer(Timer)}, State};
|
||||
handle_call(_Msg, _From, State) ->
|
||||
{reply, ok, State}.
|
||||
|
||||
|
|
Loading…
Reference in New Issue