![]() |
LogIt++
Header-only, macro-first C++ logging library
|
Prometheus text exposition format serialization helpers. More...
#include "PrometheusTextFormatConfig.hpp"#include <cctype>#include <cmath>#include <cstdint>#include <iomanip>#include <limits>#include <sstream>#include <string>#include <vector>Go to the source code of this file.
Namespaces | |
| namespace | logit |
| The primary namespace for the LogIt++ library. | |
Macros | |
| #define | LOGIT_CPP_HEADER_LOGIT_CPP_LOGIT_LOGGERS_PROMETHEUS_PROMETHEUSTEXTSERIALIZER_HPP_INCLUDED |
Functions | |
| std::string | logit::prometheus_escape_help (const std::string &value) |
| Escapes help string for Prometheus text format. | |
| std::string | logit::prometheus_escape_label_value (const std::string &value) |
| Escapes label value for Prometheus text format. | |
| std::string | logit::prometheus_sanitize_metric_name (const std::string &name) |
| Sanitizes a metric name to match Prometheus naming rules. | |
| std::string | logit::prometheus_sanitize_label_name (const std::string &name) |
| Sanitizes a label name to match Prometheus naming rules. | |
| void | logit::prometheus_format_value (std::ostringstream &os, double value) |
| Formats a Prometheus sample value according to text format rules. | |
| void | logit::prometheus_write_metric_family (std::ostringstream &os, const PrometheusMetricFamily &family, const PrometheusTextFormatConfig &config) |
| Writes one PrometheusMetricFamily to an output stream. | |
| std::string | logit::build_prometheus_text_payload (const std::vector< PrometheusMetricFamily > &families, const PrometheusTextFormatConfig &config) |
| Builds a complete Prometheus text exposition format payload. | |
Prometheus text exposition format serialization helpers.
Definition in file PrometheusTextSerializer.hpp.
| #define LOGIT_CPP_HEADER_LOGIT_CPP_LOGIT_LOGGERS_PROMETHEUS_PROMETHEUSTEXTSERIALIZER_HPP_INCLUDED |
Definition at line 3 of file PrometheusTextSerializer.hpp.