-
Notifications
You must be signed in to change notification settings - Fork 845
Add 14 metrics for TCP connections created for tunnels. #9403
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
e680550
fc95473
a7379ba
c7ef93a
70239b5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -238,6 +238,66 @@ SSL/TLS | |
|
|
||
| A gauge of current active SNI Routing Tunnels. | ||
|
|
||
| .. ts:stat:: global proxy.process.tunnel.total_client_connections_tls_tunnel integer | ||
| :type: counter | ||
|
|
||
| Total number of TCP connections for TLS tunnels where the far end is the client | ||
| created based on a ``tunnel_route`` key in a table in the :file:`sni.yaml` file. | ||
|
|
||
| .. ts:stat:: global proxy.process.tunnel.current_client_connections_tls_tunnel integer | ||
| :type: counter | ||
|
|
||
| Current number of TCP connections for TLS tunnels where the far end is the client | ||
| created based on a ``tunnel_route`` key in a table in the :file:`sni.yaml` file. | ||
|
|
||
| .. ts:stat:: global proxy.process.tunnel.total_client_connections_tls_forward integer | ||
| :type: counter | ||
|
|
||
| Total number of TCP connections for TLS tunnels where the far end is the client | ||
| created based on a ``forward_route`` key in a table in the :file:`sni.yaml` file. | ||
|
|
||
| .. ts:stat:: global proxy.process.tunnel.current_client_connections_tls_forward integer | ||
| :type: counter | ||
|
|
||
| Current number of TCP connections for TLS tunnels where the far end is the client | ||
| created based on a ``forward_route`` key in a table in the :file:`sni.yaml` file. | ||
|
|
||
| .. ts:stat:: global proxy.process.tunnel.total_client_connections_tls_partial_blind integer | ||
| :type: counter | ||
|
|
||
| Total number of TCP connections for TLS tunnels where the far end is the client | ||
| created based on a ``partial_blind_route`` key in a table in the :file:`sni.yaml` file. | ||
|
|
||
| .. ts:stat:: global proxy.process.tunnel.current_client_connections_tls_partial_blind integer | ||
| :type: counter | ||
|
|
||
| Current number of TCP connections for TLS tunnels where the far end is the client | ||
| created based on a ``partial_blind_route`` key in a table in the :file:`sni.yaml` file. | ||
|
|
||
| .. ts:stat:: global proxy.process.tunnel.total_client_connections_tls_http integer | ||
| :type: counter | ||
|
|
||
| Total number of TLS connections for tunnels where the far end is the client | ||
| initiated with an HTTP request. | ||
|
|
||
| .. ts:stat:: global proxy.process.tunnel.current_client_connections_tls_http integer | ||
| :type: counter | ||
|
|
||
| Current number of TLS connections for tunnels where the far end is the client | ||
| initiated with an HTTP request. | ||
|
|
||
| .. ts:stat:: global proxy.process.tunnel.total_server_connections_tls integer | ||
| :type: counter | ||
|
|
||
| Total number of TCP connections for TLS tunnels where the far end is the server | ||
| created based on a ``partial_blind_route`` key in a table in the :file:`sni.yaml` file. | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do we need similar server-side metrics for
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. A partial blind tunnel is the only one for which the outgoing connection corresponds to an SSLNetVConnection object rather than a UnixNetVConnection object. It's not straight forward how to implement separate counters for outgoing/server connections for the other TLS tunnel types, but it may be possible if they're needed. |
||
|
|
||
| .. ts:stat:: global proxy.process.tunnel.current_server_connections_tls integer | ||
| :type: counter | ||
|
|
||
| Current number of TCP connections for TLS tunnels where the far end is the server | ||
| created based on a ``partial_blind_route`` key in a table in the :file:`sni.yaml` file. | ||
|
|
||
| .. _pre-warming-tls-tunnel-stats: | ||
|
|
||
| Pre-warming TLS Tunnel | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -360,7 +360,13 @@ class VConnection : public Continuation | |
| return false; | ||
| } | ||
|
|
||
| public: | ||
| // This function should be called when the VConnection is a tunnel endpoint. By default, a VConnection does not care if it | ||
| // is a tunnel endpoint. | ||
| virtual void | ||
| mark_as_tunnel_endpoint() | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why do we need this virtual function in the
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Because it's called through a VConnection pointer at certain places.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This one? Can we use
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. OK I just tried that.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fair enough, thanks for checking. |
||
| { | ||
| } | ||
|
|
||
| /** | ||
| The error code from the last error. | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This covers "HTTP CONNECT" over TLS connection?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does that include QUIC connection once we support it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not currently. QUICNetVConnection would have to override _in_context_tunnel(). It could use the same metrics or different metrics.