fix monitor influxdb

This commit is contained in:
anlicheng 2025-04-08 11:11:43 +08:00
parent f8f659a957
commit 80c3508072

View File

@ -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),