20 #include "prometheus/registry.h"
26 #define GET_PROMETHEUS PrometheusClient::getInstance
35 std::shared_ptr<prometheus::Registry>
getReadyRegistry()
const {
return m_ready_registry; }
36 std::shared_ptr<prometheus::Registry>
getLiveRegistry()
const {
return m_live_registry; }
41 const std::string& sensor_id,
const std::string& sensor_name,
int source_id);
60 static std::once_flag _init_flag;
62 std::shared_ptr<prometheus::Registry> m_ready_registry =
nullptr;
63 std::shared_ptr<prometheus::Registry> m_live_registry =
nullptr;
64 std::shared_ptr<prometheus::Registry> m_startup_registry =
nullptr;
65 std::shared_ptr<prometheus::Registry> m_metrics_registry =
nullptr;
66 std::shared_ptr<prometheus::Registry> m_stream_info_registry =
nullptr;
77 void BuildGaugeFamily();