prom 0.1.0
Client-independent C++23 Prometheus/OpenMetrics metric abstraction
Loading...
Searching...
No Matches
Classes | Namespaces | Enumerations | Functions
unit.hpp File Reference

Metric kinds (MetricType) and the OpenMetrics Unit descriptor. More...

#include <cstdint>
#include <string_view>
Include dependency graph for unit.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  prom::Unit
 OpenMetrics unit suffix plus optional dimensional metadata. More...
 

Namespaces

namespace  prom
 

Enumerations

enum class  prom::MetricType : std::uint8_t {
  prom::Counter , prom::Gauge , prom::Histogram , prom::Summary ,
  prom::Untyped , prom::Info , prom::StateSet
}
 The OpenMetrics / Prometheus metric kinds prom understands. More...
 

Functions

constexpr std::string_view prom::to_string (const MetricType type) noexcept
 Lower-case OpenMetrics spelling of a MetricType (e.g. "counter").
 

Detailed Description

Metric kinds (MetricType) and the OpenMetrics Unit descriptor.