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.
| 28 | // but for this example, we pretend it would be useful to have a “native” |
| 29 | // implementation. |
| 30 | type Info struct { |
| 31 | desc *prometheus.Desc |
| 32 | labelPairs []*dto.LabelPair |
| 33 | } |
| 34 | |
| 35 | func (i Info) Desc() *prometheus.Desc { |
| 36 | return i.desc |
nothing calls this directly
no outgoing calls
no test coverage detected