#[non_exhaustive]pub struct Metrics {
pub connection_count: AtomicUsize,
pub connections_in_pool: AtomicUsize,
pub active_wait_requests: AtomicUsize,
pub create_failed: AtomicUsize,
pub discarded_superfluous_connection: AtomicUsize,
pub discarded_unestablished_connection: AtomicUsize,
pub dirty_connection_return: AtomicUsize,
pub discarded_expired_connection: AtomicUsize,
pub resetting_connection: AtomicUsize,
pub discarded_error_during_cleanup: AtomicUsize,
pub connection_returned_to_pool: AtomicUsize,
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.connection_count: AtomicUsize
Guage of active connections to the database server, this includes both connections that have belong to the pool, and connections currently owned by the application.
connections_in_pool: AtomicUsize
Guage of active connections that currently belong to the pool.
active_wait_requests: AtomicUsize
Guage of GetConn requests that are currently active.
create_failed: AtomicUsize
Counter of connections that failed to be created.
discarded_superfluous_connection: AtomicUsize
Counter of connections discarded due to pool constraints.
discarded_unestablished_connection: AtomicUsize
Counter of connections discarded due to being closed upon return to the pool.
dirty_connection_return: AtomicUsize
Counter of connections that have been returned to the pool dirty that needed to be cleaned (ie. open transactions, pending queries, etc).
discarded_expired_connection: AtomicUsize
Counter of connections that have been discarded as they were expired by the pool constraints.
resetting_connection: AtomicUsize
Counter of connections that have been reset.
discarded_error_during_cleanup: AtomicUsize
Counter of connections that have been discarded as they returned an error during cleanup.
connection_returned_to_pool: AtomicUsize
Counter of connections that have been returned to the pool.