MCPcopy Create free account
hub / github.com/prometheus/common / SampleDecoder

Struct SampleDecoder

expfmt/decode.go:150–155  ·  view source on GitHub ↗

SampleDecoder wraps a Decoder to extract samples from the metric families decoded by the wrapped Decoder.

Source from the content-addressed store, hash-verified

148// SampleDecoder wraps a Decoder to extract samples from the metric families
149// decoded by the wrapped Decoder.
150type SampleDecoder struct {
151 Dec Decoder
152 Opts *DecodeOptions
153
154 f dto.MetricFamily
155}
156
157// Decode calls the Decode method of the wrapped Decoder and then extracts the
158// samples from the decoded MetricFamily into the provided model.Vector.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected