14 #include "prometheus/registry.h"
20 #define GET_PROMETHEUS PrometheusClient::getInstance
29 std::shared_ptr<prometheus::Registry>
getReadyRegistry()
const {
return m_ready_registry; }
30 std::shared_ptr<prometheus::Registry>
getLiveRegistry()
const {
return m_live_registry; }
35 const std::string& sensor_id,
const std::string& sensor_name,
int source_id);
54 static std::once_flag _init_flag;
56 std::shared_ptr<prometheus::Registry> m_ready_registry =
nullptr;
57 std::shared_ptr<prometheus::Registry> m_live_registry =
nullptr;
58 std::shared_ptr<prometheus::Registry> m_startup_registry =
nullptr;
59 std::shared_ptr<prometheus::Registry> m_metrics_registry =
nullptr;
60 std::shared_ptr<prometheus::Registry> m_stream_info_registry =
nullptr;
71 void BuildGaugeFamily();