Module parser

Module parser 

Source
Expand description

§Prometheus and OpenMetrics parsing functions

Use prometheus() and openmetrics() to parse an entire exposition (set of metrics). These are best used when you can fit the entire parsed exposition in memory.

Use family() to parse a chunk of an exposition. This is best used when you are streaming an exposition. If the result is an error you will need to fill the input buffer and retry, and check for EOF with either eof_marker() (OpenMetrics) or eof() (Prometheus).

Use eof_marker() to detect the end of an OpenMetrics-format exposition you are consuming with family().

Functions§

eof_marker
An OpenMetrics EOF marker
family
Parse a Family of metrics
openmetrics
Parse an OpenMetrics-format exposition
prometheus
Parse a Prometheus-format exposition