4 -include("collectd.hrl").
6 dispatch_reductions ({Total, _}) ->
7 collectd:dispatch_values (#value_list{host="localhost", plugin="erlang",
8 type="counter", type_instance="reductions",
11 dispatch_memory ({Type, Size}) ->
12 collectd:dispatch_values (#value_list{host="localhost", plugin="erlang",
13 type="memory", type_instance=atom_to_list (Type),
17 dispatch_reductions (statistics (reductions)),
18 lists:foreach (fun dispatch_memory/1, erlang:memory()),
22 collectd:register_read (fun my_read/0).