userver: storages::postgres::ConnectionStatistics< GaugeCounter, RateCounter, MmaAccumulator > Struct Template Reference
Loading...
Searching...
No Matches
storages::postgres::ConnectionStatistics< GaugeCounter, RateCounter, MmaAccumulator > Struct Template Reference

#include <userver/storages/postgres/statistics.hpp>

Detailed Description

template<typename GaugeCounter, typename RateCounter, typename MmaAccumulator>
struct storages::postgres::ConnectionStatistics< GaugeCounter, RateCounter, MmaAccumulator >

Template connection statistics storage.

Definition at line 73 of file statistics.hpp.

Public Attributes

RateCounter open_total {}
 Number of connections opened.
RateCounter drop_total {}
 Number of connections dropped.
GaugeCounter active = 0
 Number of active connections.
GaugeCounter used = 0
 Number of connections in use.
GaugeCounter maximum = 0
 Number of maximum allowed connections.
GaugeCounter waiting = 0
 Number of waiting requests.
RateCounter error_total {}
 Error during connection.
RateCounter error_timeout {}
 Connection timeouts (timeouts while connecting).
RateCounter rate_limit_throttled {}
 Number of rejected connection attempts due to rate limiting.
GaugeCounter max_queue_size = 0
 Number of maximum allowed waiting requests.
MmaAccumulator prepared_statements
 Prepared statements count min-max-avg.

Member Data Documentation

◆ active

template<typename GaugeCounter, typename RateCounter, typename MmaAccumulator>
GaugeCounter storages::postgres::ConnectionStatistics< GaugeCounter, RateCounter, MmaAccumulator >::active = 0

Number of active connections.

Definition at line 79 of file statistics.hpp.

◆ drop_total

template<typename GaugeCounter, typename RateCounter, typename MmaAccumulator>
RateCounter storages::postgres::ConnectionStatistics< GaugeCounter, RateCounter, MmaAccumulator >::drop_total {}

Number of connections dropped.

Definition at line 77 of file statistics.hpp.

◆ error_timeout

template<typename GaugeCounter, typename RateCounter, typename MmaAccumulator>
RateCounter storages::postgres::ConnectionStatistics< GaugeCounter, RateCounter, MmaAccumulator >::error_timeout {}

Connection timeouts (timeouts while connecting).

Definition at line 89 of file statistics.hpp.

◆ error_total

template<typename GaugeCounter, typename RateCounter, typename MmaAccumulator>
RateCounter storages::postgres::ConnectionStatistics< GaugeCounter, RateCounter, MmaAccumulator >::error_total {}

Error during connection.

Definition at line 87 of file statistics.hpp.

◆ max_queue_size

template<typename GaugeCounter, typename RateCounter, typename MmaAccumulator>
GaugeCounter storages::postgres::ConnectionStatistics< GaugeCounter, RateCounter, MmaAccumulator >::max_queue_size = 0

Number of maximum allowed waiting requests.

Definition at line 93 of file statistics.hpp.

◆ maximum

template<typename GaugeCounter, typename RateCounter, typename MmaAccumulator>
GaugeCounter storages::postgres::ConnectionStatistics< GaugeCounter, RateCounter, MmaAccumulator >::maximum = 0

Number of maximum allowed connections.

Definition at line 83 of file statistics.hpp.

◆ open_total

template<typename GaugeCounter, typename RateCounter, typename MmaAccumulator>
RateCounter storages::postgres::ConnectionStatistics< GaugeCounter, RateCounter, MmaAccumulator >::open_total {}

Number of connections opened.

Definition at line 75 of file statistics.hpp.

◆ prepared_statements

template<typename GaugeCounter, typename RateCounter, typename MmaAccumulator>
MmaAccumulator storages::postgres::ConnectionStatistics< GaugeCounter, RateCounter, MmaAccumulator >::prepared_statements

Prepared statements count min-max-avg.

Definition at line 96 of file statistics.hpp.

◆ rate_limit_throttled

template<typename GaugeCounter, typename RateCounter, typename MmaAccumulator>
RateCounter storages::postgres::ConnectionStatistics< GaugeCounter, RateCounter, MmaAccumulator >::rate_limit_throttled {}

Number of rejected connection attempts due to rate limiting.

Definition at line 91 of file statistics.hpp.

◆ used

template<typename GaugeCounter, typename RateCounter, typename MmaAccumulator>
GaugeCounter storages::postgres::ConnectionStatistics< GaugeCounter, RateCounter, MmaAccumulator >::used = 0

Number of connections in use.

Definition at line 81 of file statistics.hpp.

◆ waiting

template<typename GaugeCounter, typename RateCounter, typename MmaAccumulator>
GaugeCounter storages::postgres::ConnectionStatistics< GaugeCounter, RateCounter, MmaAccumulator >::waiting = 0

Number of waiting requests.

Definition at line 85 of file statistics.hpp.


The documentation for this struct was generated from the following file: