MCPcopy
hub / github.com/prometheus/client_golang / invalidMetric

Struct invalidMetric

prometheus/metric.go:130–133  ·  prometheus/metric.go::invalidMetric

Source from the content-addressed store, hash-verified

128}
129
130type invalidMetric struct {
131 desc *Desc
132 err error
133}
134
135// NewInvalidMetric returns a metric whose Write method always returns the
136// provided error. It is useful if a Collector finds itself unable to collect

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected