[tor-talk] aggregate traffic relayed?

Damian Johnson atagar1 at gmail.com
Sun Mar 11 21:34:39 UTC 2012


> Bytes sent/received stats as captured in the tor log are not
> persistent across service restarts - every time Tor exits, the it
> starts counting from zero.
>
> What's the best way to keep aggregate Tor bandwidth usage statistics
> for my relay?

The following is a simple script for using TorCtl to print all of the
tor BW events. You could tweak it to sum the events instead and keep
track of it across tor restarts.

https://gitweb.torproject.org/pytorctl.git/blob/HEAD:/example.py


More information about the tor-talk mailing list