Getting your relays traffic usage via bash

Quick one-liner to get the traffic stats of your relay:

curl -sSf http://localhost:22070/status 2> /dev/null | jq -r '.bytesProxied' | numfmt --to=si --format=%.1f --suffix=B
1 Like