userver: storages::postgres::TransactionStatistics< Counter, PercentileAccumulator > Struct Template Reference
Loading...
Searching...
No Matches
storages::postgres::TransactionStatistics< Counter, PercentileAccumulator > Struct Template Reference

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

Detailed Description

template<typename Counter, typename PercentileAccumulator>
struct storages::postgres::TransactionStatistics< Counter, PercentileAccumulator >

Template transaction statistics storage.

Definition at line 25 of file statistics.hpp.

Public Attributes

Counter total = 0
 Number of transactions started.
 
Counter commit_total = 0
 Number of transactions committed.
 
Counter rollback_total = 0
 Number of transactions rolled back.
 
Counter out_of_trx_total = 0
 Number of out-of-transaction executions.
 
Counter parse_total = 0
 Number of parsed queries.
 
Counter execute_total = 0
 Number of query executions.
 
Counter reply_total = 0
 Total number of replies.
 
Counter portal_bind_total {0}
 Number of portal bind operations.
 
Counter error_execute_total = 0
 Error during query execution.
 
Counter execute_timeout = 0
 Timeout while executing query.
 
Counter duplicate_prepared_statements = 0
 
PercentileAccumulator total_percentile
 Transaction overall execution time distribution.
 
PercentileAccumulator busy_percentile
 Transaction aggregated query execution time distribution.
 
PercentileAccumulator wait_start_percentile
 
PercentileAccumulator wait_end_percentile
 
PercentileAccumulator return_to_pool_percentile
 

Member Data Documentation

◆ busy_percentile

template<typename Counter , typename PercentileAccumulator >
PercentileAccumulator storages::postgres::TransactionStatistics< Counter, PercentileAccumulator >::busy_percentile

Transaction aggregated query execution time distribution.

Definition at line 57 of file statistics.hpp.

◆ commit_total

template<typename Counter , typename PercentileAccumulator >
Counter storages::postgres::TransactionStatistics< Counter, PercentileAccumulator >::commit_total = 0

Number of transactions committed.

Definition at line 29 of file statistics.hpp.

◆ duplicate_prepared_statements

template<typename Counter , typename PercentileAccumulator >
Counter storages::postgres::TransactionStatistics< Counter, PercentileAccumulator >::duplicate_prepared_statements = 0

Duplicate prepared statements This is not a hard error, the prepared statements are quite reusable due to pretty uniqueness of names. Nevertheless we would like to see them to diagnose certain kinds of problems

Definition at line 50 of file statistics.hpp.

◆ error_execute_total

template<typename Counter , typename PercentileAccumulator >
Counter storages::postgres::TransactionStatistics< Counter, PercentileAccumulator >::error_execute_total = 0

Error during query execution.

Definition at line 43 of file statistics.hpp.

◆ execute_timeout

template<typename Counter , typename PercentileAccumulator >
Counter storages::postgres::TransactionStatistics< Counter, PercentileAccumulator >::execute_timeout = 0

Timeout while executing query.

Definition at line 45 of file statistics.hpp.

◆ execute_total

template<typename Counter , typename PercentileAccumulator >
Counter storages::postgres::TransactionStatistics< Counter, PercentileAccumulator >::execute_total = 0

Number of query executions.

Definition at line 37 of file statistics.hpp.

◆ out_of_trx_total

template<typename Counter , typename PercentileAccumulator >
Counter storages::postgres::TransactionStatistics< Counter, PercentileAccumulator >::out_of_trx_total = 0

Number of out-of-transaction executions.

Definition at line 33 of file statistics.hpp.

◆ parse_total

template<typename Counter , typename PercentileAccumulator >
Counter storages::postgres::TransactionStatistics< Counter, PercentileAccumulator >::parse_total = 0

Number of parsed queries.

Definition at line 35 of file statistics.hpp.

◆ portal_bind_total

template<typename Counter , typename PercentileAccumulator >
Counter storages::postgres::TransactionStatistics< Counter, PercentileAccumulator >::portal_bind_total {0}

Number of portal bind operations.

Definition at line 41 of file statistics.hpp.

◆ reply_total

template<typename Counter , typename PercentileAccumulator >
Counter storages::postgres::TransactionStatistics< Counter, PercentileAccumulator >::reply_total = 0

Total number of replies.

Definition at line 39 of file statistics.hpp.

◆ return_to_pool_percentile

template<typename Counter , typename PercentileAccumulator >
PercentileAccumulator storages::postgres::TransactionStatistics< Counter, PercentileAccumulator >::return_to_pool_percentile

Return to pool percentile (difference between trx_end_time and time the connection has been returned to the pool)

Definition at line 66 of file statistics.hpp.

◆ rollback_total

template<typename Counter , typename PercentileAccumulator >
Counter storages::postgres::TransactionStatistics< Counter, PercentileAccumulator >::rollback_total = 0

Number of transactions rolled back.

Definition at line 31 of file statistics.hpp.

◆ total

template<typename Counter , typename PercentileAccumulator >
Counter storages::postgres::TransactionStatistics< Counter, PercentileAccumulator >::total = 0

Number of transactions started.

Definition at line 27 of file statistics.hpp.

◆ total_percentile

template<typename Counter , typename PercentileAccumulator >
PercentileAccumulator storages::postgres::TransactionStatistics< Counter, PercentileAccumulator >::total_percentile

Transaction overall execution time distribution.

Definition at line 55 of file statistics.hpp.

◆ wait_end_percentile

template<typename Counter , typename PercentileAccumulator >
PercentileAccumulator storages::postgres::TransactionStatistics< Counter, PercentileAccumulator >::wait_end_percentile

Transaction wait for pool time (difference between last_execute_finish and trx_end_time)

Definition at line 63 of file statistics.hpp.

◆ wait_start_percentile

template<typename Counter , typename PercentileAccumulator >
PercentileAccumulator storages::postgres::TransactionStatistics< Counter, PercentileAccumulator >::wait_start_percentile

Transaction wait for pool time (difference between trx_start_time and work_start_time)

Definition at line 60 of file statistics.hpp.


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