non-public relay health metrics for operators

https://lists.torproject.org/pipermail/tor-dev/2019-February/013655.html

Compared to other server daemons (webserver, DNS server, ..) tor provides little data for operators to detect operational issues and anomalies.

I'd suggest to provide the following stats via an prometheus compatible HTTP endpoint with authentication support (most of the data is already written to logfiles by default)

  • total amount of memory used by the tor process
  • amount of currently open circuits
  • circuit handshake stats (TAP / NTor)

DoS mitigation stats

If this causes a significant performance impact this feature should be disabled by default.

cell stats

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information