11 : _mainExposer(std::make_unique<prometheus::Exposer>(serverAddr, 1))
13 auto reg = std::make_shared<prometheus::Registry>();
17 &prometheus::BuildInfo().Name(PROJECT_NAME).Help(std::string(PROJECT_NAME) +
" information").Register(*reg);
19 _infoFamily->Add({{
"init_time", date::format(
"%FT%TZ", date::floor<std::chrono::nanoseconds>(
20 std::chrono::high_resolution_clock::now()))}});
21 _infoFamily->Add({{
"version", PROJECT_FULL_REVISION}});
23 _vRegister.emplace_back(std::numeric_limits<uint64_t>::max(), reg);