Poco

namespace Prometheus

Overview

Classes: AtomicFloat, CallbackMetric, Collector, Counter, CounterSample, Exporter, Gauge, GaugeSample, Histogram, HistogramData, HistogramSample, IntCounter, IntGauge, LabeledMetric, LabeledMetricImpl, Metric, MetricsRequestHandler, MetricsServer, ProcessCollector, Registry, TextExporter, ThreadPoolCollector

Types Aliases: CallbackCounter, CallbackGauge, CallbackIntCounter, CallbackIntGauge

Classes

class AtomicFloat

This class provides efficient atomic operations on float and double values. more...

class CallbackMetric

A generic Metric implementation where the sample is obtained via a callback function or lambda. more...

class Collector

This is the base class for all metrics, such as Counter, Gauge and Histogrammore...

class Counter

A generic counter supporting labels. more...

class CounterSample

 more...

class Exporter

The Exporter interface is used to format and write metrics to an output stream. more...

class Gauge

A generic gauge supporting labels. more...

class GaugeSample

 more...

class Histogram

A histogram with a configurable number of buckets. more...

struct HistogramData

 more...

class HistogramSample

 more...

class IntCounter

IntCounter is a very low overhead implementation of a Counter, supporting 64-bit unsigned integer values only, using std::atomic Labels are not supported. more...

class IntGauge

IntGauge is a very low overhead implementation of a Gauge, supporting 64-bit integer values only, using std::atomic. more...

class LabeledMetric

This class adds support for labels to the basic Metric class. more...

class LabeledMetricImpl

A helper class for implementing LabeledMetric classes such as Counter, Gauge and Histogrammore...

class Metric

This is the base class for all metrics, such as Counter, Gauge and Histogrammore...

class MetricsRequestHandler

This class handles incoming HTTP requests for metrics in the Prometheus text format. more...

class MetricsServer

A basic HTTP server for handling Prometheus metrics scraping requests, based on Poco::Net::HTTPServermore...

class ProcessCollector

This Collector provides process-specific metrics: - process_cpu_seconds_total: Total user and system CPU time spent in seconds. more...

class Registry

The metric registry is a collection of all active Collector instances. more...

class TextExporter

Exporter implementation for the Prometheus text format. more...

class ThreadPoolCollector

This Collector provides Poco::ThreadPool specific metrics: - poco_threadpool_max_threads: Maximum number of threads available in the thread pool (capacity). more...

Types Aliases

CallbackCounter

using CallbackCounter = CallbackMetric < double, Metric::Type::COUNTER >;

CallbackGauge

using CallbackGauge = CallbackMetric < double, Metric::Type::GAUGE >;

CallbackIntCounter

using CallbackIntCounter = CallbackMetric < Poco::UInt64, Metric::Type::COUNTER >;

CallbackIntGauge

using CallbackIntGauge = CallbackMetric < Poco::Int64, Metric::Type::GAUGE >;