Struct fibers_http_client::metrics::ConnectionPoolMetrics [−][src]
pub struct ConnectionPoolMetrics { /* fields omitted */ }
ConnectionPool
metrics.
Methods
impl ConnectionPoolMetrics
[src]
impl ConnectionPoolMetrics
pub fn max_pool_size(&self) -> usize
[src]
pub fn max_pool_size(&self) -> usize
Maximum number of pooled connections.
Metric: fibers_http_client_connection_pool_max_pool_size <GAUGE>
pub fn pool_size(&self) -> usize
[src]
pub fn pool_size(&self) -> usize
Current number of pooled connections.
This includes the connections that being used by clients.
Metric: sum(fibers_http_client_connection_allocated_connections_total) - sum(fibers_http_client_connection_released_connections_total)
pub fn allocated_connections(&self) -> u64
[src]
pub fn allocated_connections(&self) -> u64
Number of connections allocated by the pool.
Metric: fibers_http_client_connection_allocated_connections_total <COUNTER>
pub fn closed_connections(&self) -> u64
[src]
pub fn closed_connections(&self) -> u64
Number of connections released from the pool due to TCP closure.
Metric: fibers_http_client_connection_released_connections_total { reason="closed" } <COUNTER>
pub fn connect_failed_connections(&self) -> u64
[src]
pub fn connect_failed_connections(&self) -> u64
Number of connections released from the pool due to TCP connect error.
Metric: fibers_http_client_connection_released_connections_total { reason="connect_failed" } <COUNTER>
pub fn request_failed_connections(&self) -> u64
[src]
pub fn request_failed_connections(&self) -> u64
Number of connections released from the pool due to HTTP request error.
Metric: fibers_http_client_connection_released_connections_total { reason="request_failed" } <COUNTER>
pub fn expired_connections(&self) -> u64
[src]
pub fn expired_connections(&self) -> u64
Number of connections released from the pool due to keepalive expiration.
Metric: fibers_http_client_connection_released_connections_total { reason="expired" } <COUNTER>
pub fn kicked_out_connections(&self) -> u64
[src]
pub fn kicked_out_connections(&self) -> u64
Number of connections kicked out from the pool.
Metric: fibers_http_client_connection_released_connections_total { reason="kicked_out" } <COUNTER>
pub fn lent_connections(&self) -> u64
[src]
pub fn lent_connections(&self) -> u64
Number of connections lent to clients.
Metric: fibers_http_client_connection_lent_connections_total <COUNTER>
pub fn returned_connections(&self) -> u64
[src]
pub fn returned_connections(&self) -> u64
Number of connections returned from clients.
Metric: fibers_http_client_connection_returned_connections_total <COUNTER>
pub fn in_use_connetions(&self) -> u64
[src]
pub fn in_use_connetions(&self) -> u64
Currently used connections by clients.
Metric: fibers_http_client_connection_lent_connections_total - fibers_http_client_connection_returned_connections_total
pub fn no_available_connection_errors(&self) -> u64
[src]
pub fn no_available_connection_errors(&self) -> u64
Number of connection acquisition failures.
Metric: fibers_http_client_connection_errors_total { reason="no_available_connection" } <COUNTER>
Trait Implementations
impl Debug for ConnectionPoolMetrics
[src]
impl Debug for ConnectionPoolMetrics
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for ConnectionPoolMetrics
[src]
impl Clone for ConnectionPoolMetrics
fn clone(&self) -> ConnectionPoolMetrics
[src]
fn clone(&self) -> ConnectionPoolMetrics
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl Send for ConnectionPoolMetrics
impl Send for ConnectionPoolMetrics
impl Sync for ConnectionPoolMetrics
impl Sync for ConnectionPoolMetrics