Versions in this module Expand all Collapse all v0 v0.54.2 Jan 28, 2025 Changes in this version + type Entry int + const EntryComment + const EntryHelp + const EntryHistogram + const EntryInvalid + const EntrySeries + const EntryType + const EntryUnit + type OpenMetricsParser struct + func (p *OpenMetricsParser) Comment() []byte + func (p *OpenMetricsParser) CreatedTimestamp() *int64 + func (p *OpenMetricsParser) Exemplar(e *exemplar.Exemplar) bool + func (p *OpenMetricsParser) Help() ([]byte, []byte) + func (p *OpenMetricsParser) Histogram() ([]byte, *int64, *histogram.Histogram, *histogram.FloatHistogram) + func (p *OpenMetricsParser) Metric(l *labels.Labels) string + func (p *OpenMetricsParser) Next() (Entry, error) + func (p *OpenMetricsParser) Series() ([]byte, *int64, float64) + func (p *OpenMetricsParser) Type() ([]byte, model.MetricType) + func (p *OpenMetricsParser) Unit() ([]byte, []byte) + type Parser interface + Comment func() []byte + CreatedTimestamp func() *int64 + Exemplar func(l *exemplar.Exemplar) bool + Help func() ([]byte, []byte) + Histogram func() ([]byte, *int64, *histogram.Histogram, *histogram.FloatHistogram) + Metric func(l *labels.Labels) string + Next func() (Entry, error) + Series func() ([]byte, *int64, float64) + Type func() ([]byte, model.MetricType) + Unit func() ([]byte, []byte) + func New(b []byte, contentType string, parseClassicHistograms bool, ...) (Parser, error) + func NewOpenMetricsParser(b []byte, st *labels.SymbolTable) Parser + func NewPromParser(b []byte, st *labels.SymbolTable) Parser + func NewProtobufParser(b []byte, parseClassicHistograms bool, st *labels.SymbolTable) Parser + func NewProtobufParserShim(parseClassicHistograms bool, st *labels.SymbolTable, ...) Parser + type PromParser struct + func (p *PromParser) Comment() []byte + func (p *PromParser) CreatedTimestamp() *int64 + func (p *PromParser) Exemplar(*exemplar.Exemplar) bool + func (p *PromParser) Help() ([]byte, []byte) + func (p *PromParser) Histogram() ([]byte, *int64, *histogram.Histogram, *histogram.FloatHistogram) + func (p *PromParser) Metric(l *labels.Labels) string + func (p *PromParser) Next() (Entry, error) + func (p *PromParser) Series() ([]byte, *int64, float64) + func (p *PromParser) Type() ([]byte, model.MetricType) + func (p *PromParser) Unit() ([]byte, []byte) + type ProtobufParser struct + func (p *ProtobufParser) Comment() []byte + func (p *ProtobufParser) CreatedTimestamp() *int64 + func (p *ProtobufParser) Exemplar(ex *exemplar.Exemplar) bool + func (p *ProtobufParser) Help() ([]byte, []byte) + func (p *ProtobufParser) Histogram() ([]byte, *int64, *histogram.Histogram, *histogram.FloatHistogram) + func (p *ProtobufParser) Metric(l *labels.Labels) string + func (p *ProtobufParser) Next() (Entry, error) + func (p *ProtobufParser) Series() ([]byte, *int64, float64) + func (p *ProtobufParser) Type() ([]byte, model.MetricType) + func (p *ProtobufParser) Unit() ([]byte, []byte) + type ProtobufParserShim struct v0.54.1-promotel-v1.0.0 Jan 28, 2025