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

Struct openMetricsDecoder

expfmt/decode.go:183–186  ·  view source on GitHub ↗

openMetricsDecoder implements the Decoder interface for the OpenMetrics 1.0 protocol.

Source from the content-addressed store, hash-verified

181
182// openMetricsDecoder implements the Decoder interface for the OpenMetrics 1.0 protocol.
183type openMetricsDecoder struct {
184 p *openMetricsParser
185 err error
186}
187
188// Decode implements the Decoder interface.
189func (d *openMetricsDecoder) Decode(v *dto.MetricFamily) error {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected