Statistics helpers. More...
#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/recentperiod.hpp>
#include <userver/utils/statistics/relaxed_counter.hpp>
#include <userver/utils/statistics/writer.hpp>
Go to the source code of 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::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::Percentile = ::utils::statistics::Percentile< 2048 > |
using | storages::postgres::MinMaxAvg = ::utils::statistics::MinMaxAvg< uint32_t > |
using | storages::postgres::InstanceStatistics = InstanceStatisticsTemplate< ::utils::statistics::RelaxedCounter< uint32_t >, ::utils::statistics::RecentPeriod< Percentile, Percentile, detail::SteadyClock >, ::utils::statistics::RecentPeriod< MinMaxAvg, MinMaxAvg, detail::SteadyClock > > |
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. | |
Statistics helpers.
Definition in file statistics.hpp.