Opened 4 years ago

Closed 3 years ago

#12127 closed enhancement (worksforme)

Connection stats missing from menu

Reported by: asn Owned by: atagar
Priority: Medium Milestone:
Component: Core Tor/Nyx Version:
Severity: Normal Keywords:
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

I find myself checking $DataDirectory/stats/bridge-stats regularly on my bridge to see how active my bridge has been (and also if it got blocked in any new jurisdictions).

I think it would be a great addition to arm, if bridge operators could have a Statistics panel (similar to 'Bandwidth'/'Connections' panels) where those statistics would be parsed from the stat files and displayed to the user in a nice manner. I think bridge operators would get more motivated because they can see some statistics about the people they help.

Example bridge-stats file:

bridge-stats-end 2014-05-25 21:04:40 (86400 s)
bridge-ips us=552,ir=336,??=328,ru=320,gb=256,de=160,sa=128,tr=120,br=112,in=104,fr=96,it=96,id=88,mx=88,ua=88,au=80,ae=64,ca=64,eg=64,pk=64,ph=56,pl=56,nl=48,ro=48,co=40,es=40,ve=40,ye=40,bd=32,kr=32,om=32,vn=32,ar=24,ch=24,cl=24,dz=24,eu=24,fi=24,il=24,jp=24,ma=24,my=24,qa=24,se=24,tz=24,at=16,be=16,cn=16,cr=16,cz=16,gr=16,hu=16,ie=16,jo=16,kz=16,lk=16,ng=16,no=16,nz=16,pe=16,pt=16,rs=16,sd=16,sg=16,sy=16,th=16,a1=8,af=8,am=8,ao=8,bg=8,bh=8,bj=8,bn=8,bo=8,by=8,ci=8,cu=8,cy=8,dj=8,dk=8,do=8,ec=8,ee=8,et=8,gh=8,gm=8,gt=8,gu=8,hk=8,hn=8,hr=8,iq=8,is=8,ke=8,kg=8,kh=8,kw=8,lb=8,li=8,lt=8,lu=8,lv=8,ly=8,md=8,mk=8,mv=8,ni=8,np=8,pa=8,pr=8,ps=8,py=8,si=8,sk=8,sn=8,sv=8,tm=8,tn=8,tt=8,tw=8,uy=8,uz=8,za=8,zm=8
bridge-ip-versions v4=4312,v6=0
bridge-ip-transports <OR>=8,obfs2=8,obfs3=4296,scramblesuit=8

I might implement this at some point. Or maybe it could be a fun project for a new volunteer.

(Maybe dirreq-stats could also be parsed, since those numbers are used when calculating the graphs at https://metrics.torproject.org/users.html)

Child Tickets

Change History (8)

comment:1 Changed 4 years ago by atagar

Hi George. Please go to the connection panel and press 'c'. This should show you a graph of connections by locale.

Is that what you're looking for, or something else?

comment:2 Changed 4 years ago by asn

Hm, maybe.
It says Usage stats aren't available yet, press any key... when I try to do that :/

comment:3 Changed 4 years ago by atagar

How long has your bridge been up? Tor provides those stats on a daily aggregated basis. If it's a long running bridge then next step would be to figure out why 'GETINFO status/clients-seen' isn't working.

comment:4 Changed 4 years ago by asn

Resolution: invalid
Status: newclosed

Ah it works now! Wow this is just amazing. Great work!

BTW, I wouldn't have noticed that. Maybe you could enable a text when in the 'Connection panel' saying that pressing 'c' takes you to the stats page? Or add it in the Connections drop-down menu?

Thanks! Closing this ticket!

comment:5 Changed 4 years ago by atagar

Arm definitely has a feature discover-ability problem. At the UW dev meeting three years back Jake asked how to do something with arm and I said "Oh, it's in the menu. Just press 'm'." His reply was "Wow! Hey Roger, have you seen this arm menu? It's awesome!". I realized then that I was sinking months of effort into features nobody knew about.

I'm not sure how to address this. On one hand the features aren't easily discoverable but on the other one of the main appeals of arm is that it makes very, very good use of space. Once the user knows about a feature any message I give them in the future is just a waste.

Thus far I've compromised by advertising a help dialog (pressing 'h') and menu (the 'm' key) and listing all features in both. However, it's obvious that's not solving the problem. :)

comment:6 in reply to:  5 Changed 4 years ago by asn

Replying to atagar:

Arm definitely has a feature discover-ability problem. At the UW dev meeting three years back Jake asked how to do something with arm and I said "Oh, it's in the menu. Just press 'm'." His reply was "Wow! Hey Roger, have you seen this arm menu? It's awesome!". I realized then that I was sinking months of effort into features nobody knew about.

I'm not sure how to address this. On one hand the features aren't easily discoverable but on the other one of the main appeals of arm is that it makes very, very good use of space. Once the user knows about a feature any message I give them in the future is just a waste.

Thus far I've compromised by advertising a help dialog (pressing 'h') and menu (the 'm' key) and listing all features in both. However, it's obvious that's not solving the problem. :)

Is the statistics panel reachable from the menu ('m' key)? I couldn't find how to get there.
If it's not reachable, maybe adding a statistics panel button in the menu would be a reasonable idea.

comment:7 Changed 4 years ago by atagar

Resolution: invalid
Status: closedreopened
Summary: Feature request: Bridge stats panel in armConnection stats missing from menu

Yup. Just checked and it definitely looks to be missing from the menu. That's a bug. Reopening to be about that.

comment:8 Changed 3 years ago by atagar

Resolution: worksforme
Severity: Normal
Status: reopenedclosed

Cleaning up old tickets. Nyx is undergoing a rewrite, if this is still relevant then feel free to reopen.

Note: See TracTickets for help on using tickets.