Poco::Prometheus

class Exporter

File Information

Library: Prometheus
Package: Core
Header: Poco/Prometheus/Exporter.h

Description

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

Inheritance

Known Derived Classes: TextExporter

Member Summary

Member Functions: operator =, writeHeader, writeSample

Constructors

Exporter protected

Exporter() = default;

Exporter protected

Exporter(
    const Exporter & param486
) = delete;

Exporter protected

Exporter(
    Exporter && param487
) = delete;

Destructor

~Exporter protected virtual

virtual ~Exporter() = default;

Member Functions

writeHeader virtual

virtual void writeHeader(
    const Metric & metric
) = 0;

Writes the header (HELP and TYPE in text format).

writeSample virtual

virtual void writeSample(
    const Metric & metric,
    const std::vector < std::string > & labelNames,
    const std::vector < std::string > & labelValues,
    float value,
    const Poco::Timestamp & timestamp = 0
) = 0;

Writes a sample for the given metric and the given labels.

writeSample virtual

virtual void writeSample(
    const Metric & metric,
    const std::vector < std::string > & labelNames,
    const std::vector < std::string > & labelValues,
    double value,
    const Poco::Timestamp & timestamp = 0
) = 0;

Writes a sample for the given metric and the given labels.

writeSample virtual

virtual void writeSample(
    const Metric & metric,
    const std::vector < std::string > & labelNames,
    const std::vector < std::string > & labelValues,
    Poco::UInt32 value,
    const Poco::Timestamp & timestamp = 0
) = 0;

Writes a sample for the given metric and the given labels.

writeSample virtual

virtual void writeSample(
    const Metric & metric,
    const std::vector < std::string > & labelNames,
    const std::vector < std::string > & labelValues,
    Poco::Int32 value,
    const Poco::Timestamp & timestamp = 0
) = 0;

Writes a sample for the given metric and the given labels.

writeSample virtual

virtual void writeSample(
    const Metric & metric,
    const std::vector < std::string > & labelNames,
    const std::vector < std::string > & labelValues,
    Poco::UInt64 value,
    const Poco::Timestamp & timestamp = 0
) = 0;

Writes a sample for the given metric and the given labels.

writeSample virtual

virtual void writeSample(
    const Metric & metric,
    const std::vector < std::string > & labelNames,
    const std::vector < std::string > & labelValues,
    Poco::Int64 value,
    const Poco::Timestamp & timestamp = 0
) = 0;

Writes a sample for the given metric and the given labels.

writeSample virtual

virtual void writeSample(
    const Metric & metric,
    const std::vector < std::string > & labelNames,
    const std::vector < std::string > & labelValues,
    const std::string & value,
    const Poco::Timestamp & timestamp = 0
) = 0;

Writes a sample for the given metric and the given labels.

operator = protected

Exporter & operator = (
    const Exporter & param488
) = delete;

operator = protected

Exporter & operator = (
    Exporter && param489
) = delete;