Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • Tor Tor
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 831
    • Issues 831
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 32
    • Merge requests 32
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • The Tor Project
  • Core
  • TorTor
  • Issues
  • #40546

Closed
Open
Created Jan 16, 2022 by nusenu@nusenu

MetricsPort: new metric exposing time until online keys expire for relay operators using OfflineMasterKey

Summary

The number of tor relay operators using the OfflineMasterKey feature is increasing. To reduce the risk of relay outages caused by not renewed online keys, it would be great to help relay operators with monitoring their key expiry by exposing the number of seconds until the online keys expire and tor automatically shuts down.

This will allow relay operators to write alertmanager rules to notify them in time before their keys expire.

What is the expected behavior?

When connecting to the MetricsPort of a tor relay running in OfflineMasterKey mode, a metric will indicate the time in seconds until the online keys expire.

The metric could be named:

tor_relay_online_key_expiry_seconds

a positive integer as a countdown until tor shuts down.

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