utilities/telegraf-plugins#2: Add relay specific stats to the tor-plugin



Issue Information

Issue Type: issue
Status: closed
Reported By: btasker
Assigned To: btasker

Milestone: tor-plugin v0.1
Created: 12-May-22 10:16



Description

In #1 I've created an plugin to pull stats from Tor's controlport.

However, most of the figures pulled are Onion service centric: I was creating the plugin to monitor Tor on my onion endpoints.

It'd make for a more useful plugin to also collect stats that are pertinent to relays though



Toggle State Changes

Activity


assigned to @btasker

#1 already collects the basics (whether the ORPort is reachable etc), but there's additional stuff you're likely to care about for a relay

  • Is accounting enabled?
  • How much of the accounting budget is left?
  • Is the node currently hibernating?
  • How many exit policies (ipv4)
  • How many exit policies (ipv6)
  • Number of clients seen

I've implemented collection of accounting stats.

I'll need to spin a new relay up to be able to grab examples for the others - I don't really want to play around on a live relay (though it should be safe)

verified

mentioned in commit github-mirror/telegraf-plugins@39d7ecdfbefa013f81c4614c76d968d75bb091f6

Commit: github-mirror/telegraf-plugins@39d7ecdfbefa013f81c4614c76d968d75bb091f6 
Author: B Tasker                            
                            
Date: 2022-05-12T12:16:18.000+01:00 

Message

Collect information about quotas/accounting for utilities/telegraf-plugins#2

+145 -1 (146 lines changed)

I'm going to spin the exit stuff out into an exit node specific ticket as really I'll need to stand up an exit node to test it.

So, that should mean that this is done.