This module measures data that is buffered by Prosody, waiting to be written to sockets.
With the plugin installer in Prosody 0.12 you can use:
sudo prosodyctl install --server=https://modules.prosody.im/rocks/ mod_measure_conn_buffers
For earlier versions see the documentation for installing 3rd party modules