/
githubmirror
/
nbs
Обзор
Документация
Войти
/
githubmirror
/
nbs
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
cloud/blockstore/libs/storage/service/service_counters.cpp
38 строк
1 KB
qkrorlqr
Initial NBS OpenSource export
28 апр 2023, 21:54
28 апр 2023, 21:54
783a858
Код
Авторство
О чём код?
#include "service_counters.h" namespace NCloud::NBlockStore::NStorage { using namespace NKikimr; //////////////////////////////////////////////////////////////////////////////// #define BLOCKSTORE_COUNTER_NAME(name, category, ...) #category "/" #name, const char* const TServiceCounters::SimpleCounterNames[] = { BLOCKSTORE_SERVICE_SIMPLE_COUNTERS(BLOCKSTORE_COUNTER_NAME) }; const char* const TServiceCounters::CumulativeCounterNames[] = { BLOCKSTORE_SERVICE_CUMULATIVE_COUNTERS(BLOCKSTORE_COUNTER_NAME) }; const char* const TServiceCounters::PercentileCounterNames[] = { BLOCKSTORE_SERVICE_PERCENTILE_COUNTERS(BLOCKSTORE_COUNTER_NAME) }; #undef BLOCKSTORE_COUNTER_NAME //////////////////////////////////////////////////////////////////////////////// std::shared_ptr<TTabletCountersBase> CreateServiceCounters() { return CreateTabletCounters( TServiceCounters::SIMPLE_COUNTER_SIZE, TServiceCounters::CUMULATIVE_COUNTER_SIZE, TServiceCounters::PERCENTILE_COUNTER_SIZE, TServiceCounters::SimpleCounterNames, TServiceCounters::CumulativeCounterNames, TServiceCounters::PercentileCounterNames); } } // namespace NCloud::NBlockStore::NStorage