[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [tor-bugs] #11799 [Metrics Website]: Include scramblesuit and total PT usage to userstats-bridge-transport



#11799: Include scramblesuit and total PT usage to userstats-bridge-transport
---------------------------------+-----------------
     Reporter:  asn              |      Owner:
         Type:  task             |     Status:  new
     Priority:  normal           |  Milestone:
    Component:  Metrics Website  |    Version:
   Resolution:                   |   Keywords:
Actual Points:                   |  Parent ID:
       Points:                   |
---------------------------------+-----------------

Comment (by karsten):

 Added scramblesuit to the list of transports.

 Adding a graph with the sum of all transports except `"<OR>"` and `"<??>"`
 requires some R hacking.  It's probably easiest if I do that, but just in
 case you're feeling like you might enjoy writing R code, here's what I
 would do:

  - Look at the relevant code: https://gitweb.torproject.org/metrics-
 web.git/blob/HEAD:/website/rserve/graphs.R#l873

  - Think about a new parameter to pass to
 `plot_userstats_bridge_transport` instead of the actual transport name.  I
 could imagine `"!<*>"`.  It needs to be different from any future
 transport names.  That's also the parameter value that will be passed from
 the HTML form.

  - Extend `plot_userstats` in the same source file to handle that special
 transport name.  The data frame created in line 816 will contain more than
 one row per `date`, so we'll have to use `aggregate()` to sum them up.
 There's an example for using `aggregate()` in line 734.

  - Test the new function with a local copy of
 https://metrics.torproject.org/stats/clients.csv.  Update the path in line
 785 for testing.

  - Add the new "sum of all transports" transport to website, which is very
 similar to how scramblesuit, meek, FTE, etc. have been added.

 Let me know if you want to hack on this.  If not, I'll do it.

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/11799#comment:1>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs