Skip to content

Instantly share code, notes, and snippets.

@ehelaya
Created May 3, 2023 05:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ehelaya/02a7150533c26c764f5ba64f7a69ac4b to your computer and use it in GitHub Desktop.
Save ehelaya/02a7150533c26c764f5ba64f7a69ac4b to your computer and use it in GitHub Desktop.
aggregator
% aggregator_stats_sup:find_stats_proc(TenantId, ClusterId, StatsId, Type).
{ok, Pid} = aggregator_stats_sup:find_stats_proc(<<"0002">>, <<"65">>, <<"4bT0GyIA5tFnAbZ2tpLqLT">>, <<"queue">>).
AggStats = aggregator_stats_process:get_stats(Pid).
file:write_file("/tmp/agg_stats.txt", io_lib:fwrite("~p", [AggStats])).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment