fix monitor influxdb
This commit is contained in:
parent
f8f659a957
commit
80c3508072
@ -77,10 +77,7 @@ init([]) ->
|
||||
%% 启动工作的线程池
|
||||
{ok, PoolPid} = poolboy:start_link([{size, PoolSize}, {max_overflow, PoolSize}, {worker_module, influx_client}], WorkerArgs),
|
||||
%% 创建bucket
|
||||
poolboy:transaction(PoolPid, fun(ClientPid) ->
|
||||
Result = create_bucket(ClientPid),
|
||||
lager:debug("[influx_monitor_client_pool] org_name: ~p, create bucket result: ~p", [?DEFAULT_ORG, Result])
|
||||
end),
|
||||
poolboy:transaction(PoolPid, fun(ClientPid) -> create_bucket(ClientPid) end),
|
||||
%% 定时刷新逻辑
|
||||
erlang:start_timer(5000, self(), flush_ticker),
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user