Module agora.stats.StatFormatter

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

Functions

NameDescription
formatStats(values, 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(values, label_val, 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(values, labels, 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.