Versions in this module Expand all Collapse all v0 v0.31.4 Sep 29, 2021 v0.31.3 Sep 29, 2021 Changes in this version + const FmtOpenMetrics + const FmtProtoCompact + const FmtProtoDelim + const FmtProtoText + const FmtText + const FmtUnknown + const OpenMetricsType + const OpenMetricsVersion + const ProtoFmt + const ProtoProtocol + const ProtoType + const TextVersion + func ExtractSamples(o *DecodeOptions, fams ...*dto.MetricFamily) (model.Vector, error) + func FinalizeOpenMetrics(w io.Writer) (written int, err error) + func MetricFamilyToOpenMetrics(out io.Writer, in *dto.MetricFamily) (written int, err error) + func MetricFamilyToText(out io.Writer, in *dto.MetricFamily) (written int, err error) + type Closer interface + Close func() error + type DecodeOptions struct + Timestamp model.Time + type Decoder interface + Decode func(*dto.MetricFamily) error + func NewDecoder(r io.Reader, format Format) Decoder + type Encoder interface + Encode func(*dto.MetricFamily) error + func NewEncoder(w io.Writer, format Format) Encoder + type Format string + func Negotiate(h http.Header) Format + func NegotiateIncludingOpenMetrics(h http.Header) Format + func ResponseFormat(h http.Header) Format + type ParseError struct + Line int + Msg string + func (e ParseError) Error() string + type SampleDecoder struct + Dec Decoder + Opts *DecodeOptions + func (sd *SampleDecoder) Decode(s *model.Vector) error + type TextParser struct + func (p *TextParser) TextToMetricFamilies(in io.Reader) (map[string]*dto.MetricFamily, error)