6#include <userver/components/component_fwd.hpp>
7#include <userver/components/raw_component_base.hpp>
8#include <userver/utils/statistics/metrics_storage.hpp>
9#include <userver/utils/statistics/storage.hpp>
11USERVER_NAMESPACE_BEGIN
38 StatisticsStorage(
const ComponentConfig& config,
39 const ComponentContext& context);
41 ~StatisticsStorage()
override;
43 void OnAllComponentsLoaded()
override;
45 utils::statistics::Storage& GetStorage() {
return storage_; }
47 const utils::statistics::Storage& GetStorage()
const {
return storage_; }
49 utils::statistics::MetricsStoragePtr GetMetricsStorage() {
50 return metrics_storage_;
56 utils::statistics::Storage storage_;
57 utils::statistics::MetricsStoragePtr metrics_storage_;
58 std::vector<utils::statistics::Entry> metrics_storage_registration_;
62inline constexpr bool kHasValidate<StatisticsStorage> =
true;
65inline constexpr auto kConfigFileMode<StatisticsStorage> =