Erlang application to obtain resource metrics from cgroups