userver: userver/storages/postgres/statistics.hpp File Reference
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
statistics.hpp File Reference

Detailed Description

Statistics helpers.

Definition in file statistics.hpp.

Go to the source code of this file.

#include <unordered_map>
#include <vector>
#include <userver/storages/postgres/detail/time_types.hpp>
#include <userver/congestion_control/controllers/linear.hpp>
#include <userver/utils/statistics/min_max_avg.hpp>
#include <userver/utils/statistics/percentile.hpp>
#include <userver/utils/statistics/rate_counter.hpp>
#include <userver/utils/statistics/recentperiod.hpp>
#include <userver/utils/statistics/relaxed_counter.hpp>
#include <userver/utils/statistics/writer.hpp>
+ This graph shows which files directly or indirectly include this file:

Classes

struct  storages::postgres::TransactionStatistics< Counter, PercentileAccumulator >
 Template transaction statistics storage. More...
 
struct  storages::postgres::ConnectionStatistics< Counter, MmaAccumulator >
 Template connection statistics storage. More...
 
struct  storages::postgres::InstanceTopologyStatistics< MmaAccumulator >
 Template instance topology statistics storage. More...
 
struct  storages::postgres::InstanceStatisticsTemplate< Counter, PercentileAccumulator, MmaAccumulator >
 Template instance statistics storage. More...
 
struct  storages::postgres::StatementStatistics
 
struct  storages::postgres::InstanceStatisticsNonatomic
 
struct  storages::postgres::InstanceStatsDescriptor
 Instance statistics with description. More...
 
struct  storages::postgres::ClusterStatistics
 Cluster statistics storage. More...
 

Namespaces

namespace  storages
 Components, clients and helpers for different databases and storages.
 
namespace  storages::postgres
 Top namespace for uPg driver.
 

Typedefs

using storages::postgres::RateCounter = ::utils::statistics::RateCounter
 
using storages::postgres::Percentile = ::utils::statistics::Percentile<2048>
 
using storages::postgres::MinMaxAvg = ::utils::statistics::MinMaxAvg<uint32_t>
 
using storages::postgres::InstanceStatistics
 
using storages::postgres::InstanceStatisticsNonatomicBase = InstanceStatisticsTemplate<uint32_t, Percentile, MinMaxAvg>
 
using storages::postgres::ClusterStatisticsPtr = std::unique_ptr<ClusterStatistics>
 

Functions

void storages::postgres::DumpMetric (::utils::statistics::Writer &writer, const InstanceStatisticsNonatomic &stats)
 
void storages::postgres::DumpMetric (::utils::statistics::Writer &writer, const InstanceStatsDescriptor &value)
 InstanceStatsDescriptor values support for utils::statistics::Writer.
 
void storages::postgres::DumpMetric (::utils::statistics::Writer &writer, const ClusterStatistics &value)
 ClusterStatistics values support for utils::statistics::Writer.