|
prom 0.1.0
Client-independent C++23 Prometheus/OpenMetrics metric abstraction
|
A read-only snapshot describing one registered metric, returned by the enumeration APIs (Registry::metrics, Scope::metrics).
More...
#include <registry.hpp>

Public Attributes | |
| MetricType | type {} |
| std::string | name |
| std::string | help |
| Labels | const_labels |
| Unit | unit |
| bool | scoped = false |
A read-only snapshot describing one registered metric, returned by the enumeration APIs (Registry::metrics, Scope::metrics).
For a scoped metric the name and const_labels are the effective (scope-decorated) values computed live. The unit's string views reference storage owned by the live metric, so a MetricInfo is valid only while that metric is alive.
| Labels prom::MetricInfo::const_labels |
| std::string prom::MetricInfo::help |
| std::string prom::MetricInfo::name |
| bool prom::MetricInfo::scoped = false |
| MetricType prom::MetricInfo::type {} |
| Unit prom::MetricInfo::unit |