userver: userver/utils/statistics/prometheus.hpp File Reference
Loading...
Searching...
No Matches
prometheus.hpp File Reference

Detailed Description

Statistics output in Prometheus format.

Definition in file prometheus.hpp.

Go to the source code of this file.

#include <string>
#include <userver/utils/statistics/storage.hpp>

Namespaces

namespace  utils
 Utilities.
 

Functions

std::string utils::statistics::ToPrometheusFormat (const utils::statistics::Storage &statistics, const utils::statistics::Request &request={})
 Output statistics in Prometheus format, each metric has gauge type.
 
std::string utils::statistics::ToPrometheusFormatUntyped (const utils::statistics::Storage &statistics, const utils::statistics::Request &request={})
 Output statistics in Prometheus format, without metric types.