control: Add a key to GETINFO to fetch the circuit onion handshake rephist values
Basically something that would export the rephist value of the onion handshakes:
onion_handshakes_assigned
onion_handshakes_requested
The heartbeat uses rep_hist_log_circuit_handshake_stats()
to log the ntor and tap stats. I want those from the GETINFO command in order to be able to graph and keep stats over time of those values.
- Show closed items
Activity
-
Newest first Oldest first
-
Show all activity Show comments only Show history only
- David Goulet changed milestone to %Tor: unspecified in legacy/trac
changed milestone to %Tor: unspecified in legacy/trac
- David Goulet added component::core tor/tor in Legacy / Trac milestone::Tor: unspecified in Legacy / Trac owner::neel in Legacy / Trac priority::low in Legacy / Trac reviewer::dgoulet in Legacy / Trac severity::normal in Legacy / Trac status::needs-review in Legacy / Trac tor-control in Legacy / Trac tor-spec in Legacy / Trac type::enhancement in Legacy / Trac labels
added component::core tor/tor in Legacy / Trac milestone::Tor: unspecified in Legacy / Trac owner::neel in Legacy / Trac priority::low in Legacy / Trac reviewer::dgoulet in Legacy / Trac severity::normal in Legacy / Trac status::needs-review in Legacy / Trac tor-control in Legacy / Trac tor-spec in Legacy / Trac type::enhancement in Legacy / Trac labels
- Author Owner
Trac:
Type: defect to enhancement - Guest
Trac:
Status: new to assigned
Owner: N/A to neel
Cc: N/A to neel - Guest
PRs:
Setting as needs review.
Trac:
Status: assigned to needs_review - Contributor
Trac:
Reviewer: N/A to dgoulet - David Goulet mentioned in issue legacy/trac#28280 (moved)
mentioned in issue legacy/trac#28280 (moved)
- Trac moved from legacy/trac#28279 (moved)
moved from legacy/trac#28279 (moved)
- Trac added Feature Needs Review labels and removed 1 deleted label
added Feature Needs Review labels and removed 1 deleted label
- George Kadianakis added Reviewer label
added Reviewer label
- George Kadianakis assigned to @dgoulet and unassigned @neel
- Author Owner
Thanks neel! No show stopper except the naming of the option.
@nickm, @ahf, @asn: If any of you can weigh in on the naming of the
GETINFO
option would be great. I made suggestions here: https://github.com/torproject/torspec/pull/117#pullrequestreview-437413511No need to bikeshed this forever, just need rough consensus on a name. This is user expose naming so I prefer we spend couple minutes thinking about it.
- David Goulet added 1 deleted label
added 1 deleted label
- Owner
I'm +1 on stats, -1 on exposing the rephist name.
- Owner
Same: +1 on stats, but rephist is confusing even for for me at times. Don't think it's a good idea to expose it via the ControlPort.
- Author Owner
- Guest
Please re-review and merge if good, I changed to
stats/
. Collapse replies - Author Owner
Not sure you saw my comments on the PR though except for that naming?
- Contributor
+1 on stats
- Guest
Oops, sorry.
- Guest
Made the other requested changes, please approve if okay?
Collapse replies - Author Owner
One problem and one request for name change. Should be good after this. Thanks!
- Trac added Control API Specifications labels and removed Reviewer + 1 deleted label
added Control API Specifications labels and removed Reviewer + 1 deleted label
- David Goulet removed 1 deleted label
removed 1 deleted label
- David Goulet added 1 deleted label
added 1 deleted label
- Guest
Made the changes, please merge if okay.
- Author Owner
PREFIX
is still wrong.PREFIX("rephist/ntor", rephist, "NTor circuit handshake stats."),
- Guest
Fixed it.
Collapse replies - Author Owner
Well doesn't need to be
stats/ntor
and notrephist
?
- Guest
True. Made the fix.
Sorry if I didn't catch this earlier.
- Neel Chauhan mentioned in commit b558971c
mentioned in commit b558971c
- Author Owner
Great. Squashed and merged!
(I added a commit to simply rename
rep_hist
in the unit tests tostats
.) - David Goulet closed
closed