Small Prometheus exporter for the tor daemon written in Go. Forked from squeed/prometheus-tor.
tor_exporter (--tor.control-socket /var/run/tor/control | --tor.control-port localhost:9051)
The default port for serving the metrics is 9105, can be changed with flag: --web.listen-address.
A docker image is also provided.
docker run -d -p 9105:9105 -v /var/lib/tor/control_auth_cookie:/var/lib/tor/control_auth_cookie:ro,z \
martinohansen/tor_exporter --tor.control-port example:9051The typical way of installing in Go should work.
go installtor_connection_circuits- the number of open circuitstor_connection_streams- the number of open streamstor_connection_orconns- the number of open ORConnstor_traffic_read_bytes,tor_traffic_written_bytes- cumulative inbound and outbound traffic
- Let's cheat and assume the CircuitID is sequential. Instant counter!