Versions in this module Expand all Collapse all v2 v2.13.1 Oct 8, 2023 Changes in this version + const MetricTypeCounter + const MetricTypeGauge + const MetricTypeGaugeHistogram + const MetricTypeHistogram + const MetricTypeInfo + const MetricTypeStateset + const MetricTypeSummary + const MetricTypeUnknown + type Entry int + const EntryComment + const EntryHelp + const EntryInvalid + const EntrySeries + const EntryType + const EntryUnit + type MetricType string + type OpenMetricsParser struct + func (p *OpenMetricsParser) Comment() []byte + func (p *OpenMetricsParser) Help() ([]byte, []byte) + 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, MetricType) + func (p *OpenMetricsParser) Unit() ([]byte, []byte) + type Parser interface + Comment func() []byte + Help func() ([]byte, []byte) + Metric func(l *labels.Labels) string + Next func() (Entry, error) + Series func() ([]byte, *int64, float64) + Type func() ([]byte, MetricType) + Unit func() ([]byte, []byte) + func New(b []byte, contentType string) Parser + func NewOpenMetricsParser(b []byte) Parser + func NewPromParser(b []byte) Parser + type PromParser struct + func (p *PromParser) Comment() []byte + func (p *PromParser) Help() ([]byte, []byte) + 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, MetricType) + func (p *PromParser) Unit() ([]byte, []byte) Other modules containing this package github.com/zpascal/prometheus