|
prom 0.1.0
Client-independent C++23 Prometheus/OpenMetrics metric abstraction
|
The complete, backend-agnostic description of a metric family handed to Adapter::register_metric.
More...
#include <adapter.hpp>

Public Attributes | |
| MetricType | type {} |
| Which kind of metric this is. | |
| std::string_view | name {} |
| Fully-qualified metric name. | |
| std::string_view | help {} |
| One-line description. | |
| Unit | unit {} |
| Declared unit (may be empty). | |
| Labels | const_labels {} |
| Labels fixed for the whole family. | |
| comms::DisplayInfo | display {} |
| Optional UI metadata. | |
| std::span< const double > | buckets {} |
| Histogram bucket bounds (else empty). | |
| std::span< const double > | quantiles {} |
| Summary quantiles (else empty). | |
| std::span< const std::string > | states {} |
| State-set member names (else empty). | |
The complete, backend-agnostic description of a metric family handed to Adapter::register_metric.
The string_view/span members reference storage owned by the caller (the metric's shared state) and are guaranteed valid only for the duration of the register_metric call — backends must copy anything they need to keep.
| std::span<const double> prom::MetricMeta::buckets {} |
Histogram bucket bounds (else empty).
| comms::DisplayInfo prom::MetricMeta::display {} |
Optional UI metadata.
| std::string_view prom::MetricMeta::help {} |
One-line description.
| std::string_view prom::MetricMeta::name {} |
Fully-qualified metric name.
| std::span<const double> prom::MetricMeta::quantiles {} |
Summary quantiles (else empty).
| std::span<const std::string> prom::MetricMeta::states {} |
State-set member names (else empty).
| MetricType prom::MetricMeta::type {} |
Which kind of metric this is.
| Unit prom::MetricMeta::unit {} |
Declared unit (may be empty).