|
prom 0.1.0
Client-independent C++23 Prometheus/OpenMetrics metric abstraction
|
Shared, reference-counted state behind every metric handle. More...
#include <metric_base.hpp>

Classes | |
| struct | Bound |
Public Member Functions | |
| Unit | unit_view () const |
| Build a non-owning view of the currently-known unit. | |
| MetricMeta | build_meta () const |
| Assemble the transient registration metadata. | |
Public Attributes | |
| MetricType | type {} |
| std::string | name |
| std::string | help |
| Labels | const_labels |
| comms::DisplayInfo | display |
| std::vector< double > | buckets |
| std::vector< double > | quantiles |
| std::vector< std::string > | states |
| std::shared_ptr< AdapterSource > | source |
| detail::AtomicSharedPtr< Bound > | bound |
| bool | pinned = false |
| std::shared_ptr< ScopeState > | scope |
| std::string | base_name |
| Labels | base_labels |
| comms::DisplayInfo | base_display |
| std::mutex | bind_mutex |
| std::shared_ptr< MetricCore > | family |
| std::mutex | unit_mutex |
| bool | has_unit = false |
| bool | unit_from_dimval = false |
| std::string | unit_name |
| std::string | unit_kind |
| std::string | unit_symbol |
Shared, reference-counted state behind every metric handle.
It owns the stable string/buffer storage that MetricMeta views into, the adapter source it reads its backend from, the currently-published binding, and the bookkeeping for lazy/live binding and runtime unit reconciliation.
|
inline |
Assemble the transient registration metadata.
The returned views/spans are valid only while *this outlives the call (always true: the caller holds the core).
|
inline |
Build a non-owning view of the currently-known unit.
| comms::DisplayInfo prom::MetricCore::base_display |
| Labels prom::MetricCore::base_labels |
| std::string prom::MetricCore::base_name |
| std::mutex prom::MetricCore::bind_mutex |
| detail::AtomicSharedPtr<Bound> prom::MetricCore::bound |
| std::vector<double> prom::MetricCore::buckets |
| Labels prom::MetricCore::const_labels |
| comms::DisplayInfo prom::MetricCore::display |
| std::shared_ptr<MetricCore> prom::MetricCore::family |
| bool prom::MetricCore::has_unit = false |
| std::string prom::MetricCore::help |
| std::string prom::MetricCore::name |
| bool prom::MetricCore::pinned = false |
| std::vector<double> prom::MetricCore::quantiles |
| std::shared_ptr<ScopeState> prom::MetricCore::scope |
| std::shared_ptr<AdapterSource> prom::MetricCore::source |
| std::vector<std::string> prom::MetricCore::states |
| MetricType prom::MetricCore::type {} |
| bool prom::MetricCore::unit_from_dimval = false |
| std::string prom::MetricCore::unit_kind |
| std::mutex prom::MetricCore::unit_mutex |
| std::string prom::MetricCore::unit_name |
| std::string prom::MetricCore::unit_symbol |