Skip to content

Small Prometheus exporter for the tor daemon

License

Notifications You must be signed in to change notification settings

martinohansen/tor_exporter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tor_exporter

Small Prometheus exporter for the tor daemon written in Go. Forked from squeed/prometheus-tor.

Usage

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.

Docker

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:9051

Installation

The typical way of installing in Go should work.

go install

Metrics exposed

  • tor_connection_circuits - the number of open circuits
  • tor_connection_streams - the number of open streams
  • tor_connection_orconns - the number of open ORConns
  • tor_traffic_read_bytes, tor_traffic_written_bytes - cumulative inbound and outbound traffic

To-do

  • Let's cheat and assume the CircuitID is sequential. Instant counter!

About

Small Prometheus exporter for the tor daemon

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 96.5%
  • Dockerfile 3.5%