ocean.util.prometheus.collector.StatFormatter

Contains methods that format primitive data members from structs or classes into strings that can be exported as responses to prometheus queries.

Members

Static functions

formatStats
void formatStats(ValuesT values, mstring buffer)

Format data members from a struct or a class into a string that can be added to a stat collection buffer for exporting to prometheus.

formatStats
void formatStats(ValuesT values, LabelT label_val, mstring buffer)

Format data members from a struct or a class, with a additional label name and value, into a string that can be added to a stat collection buffer for exporting to prometheus.

formatStats
void formatStats(ValuesT values, LabelsT labels, mstring buffer)

Format data members from a struct or a class, with an additional struct or class to fetch label names and values from, into a string that can be added to a stat collection buffer for exporting to prometheus.

Structs

Labels
struct Labels
Undocumented in source.
Statistics
struct Statistics
Undocumented in source.

Meta

License

Boost Software License Version 1.0. See LICENSE.txt for details.