Implement new metrics-web module for IPv6 relay statistics
The sample graphs I made for #23761 (moved) are based on some quick-and-dirty Java code that we need to rewrite in a more robust and more scalable way before putting these graphs on Tor Metrics.
Here's my plan for implementing this module, and I'm curious to hear possible alternatives or improvements:
We start with a design quite similar to the recently added webstats module. This basically means creating:
- a PostgreSQL database schema for import tables and aggregations/views and
- a Java class to import into the database and run queries.
I believe that the data aggregation won't scale to years of data. My hope is that we can solve this in the database by using some triggers to only include newly added data in the aggregation.