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

Struct gauge

prometheus/gauge.go:90–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88}
89
90type gauge struct {
91 // valBits contains the bits of the represented float64 value. It has
92 // to go first in the struct to guarantee alignment for atomic
93 // operations. http://golang.org/pkg/sync/atomic/#pkg-note-BUG
94 valBits uint64
95
96 selfCollector
97
98 desc *Desc
99 labelPairs []*dto.LabelPair
100}
101
102func (g *gauge) Desc() *Desc {
103 return g.desc

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected