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

Struct Info

prometheus/example_metricvec_test.go:30–33  ·  view source on GitHub ↗

Info implements an info pseudo-metric, which is modeled as a Gauge that always has a value of 1. In practice, you would just use a Gauge directly, but for this example, we pretend it would be useful to have a “native” implementation.

Source from the content-addressed store, hash-verified

28// but for this example, we pretend it would be useful to have a “native”
29// implementation.
30type Info struct {
31 desc *prometheus.Desc
32 labelPairs []*dto.LabelPair
33}
34
35func (i Info) Desc() *prometheus.Desc {
36 return i.desc

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected