mirror of https://github.com/linkerd/linkerd2.git
This branch adds all the transport-level Prometheus metrics as described in #742, with the exception of the `tcp_connections_open` gauge (to be added in a subsequent branch). A brief description of the metrics added in this branch: * `tcp_accept_open_total`: counter of the number of connections accepted by the proxy * `tcp_accept_close_total`: counter of the number of accepted connections that have closed * `tcp_connect_open_total`: counter of the number of connections opened by the proxy * `tcp_connect_close_total`: counter of the number of connections opened by the proxy that have been closed. * `tcp_connection_duration_ms`: histogram of the total duration of each TCP connection (incremented on connection close) * `sent_bytes`: counter of the total number of bytes sent on TCP connections (incremented on connection close) * `received_bytes`: counter of the total number of bytes received on TCP connections (incremented on connection close) These metrics are labeled with the direction (inbound or outbound) and whether the connection was proxied as raw TCP or corresponds to an HTTP request. Additionally, I've added several proxy tests for these metrics. Note that there are some cases which are currently untested; in particular, while there are tests for the `tcp_accept_close_total` counter, it's more difficult to test the `tcp_connect_close_total` counter, due to connection pooling. I'd like to improve the tests for this code in additional branches. |
||
---|---|---|
.. | ||
controller-grpc | ||
convert | ||
futures-mpsc-lossy | ||
router | ||
src | ||
tests | ||
Cargo.toml | ||
Dockerfile |