Code
Hub
Workspaces
Connect your AI tool
Indexed graphs
Engine
MCP
copy
hub
/
github.com/prometheus/client_golang
/ Set
Method
Set
prometheus/gauge.go:37–37 · prometheus/gauge.go::Gauge.Set
Set sets the Gauge to an arbitrary value.
(float64)
Source
from the content-addressed store, hash-verified
35
36
// Set sets the Gauge to an arbitrary value.
37
Set(float64)
38
// Inc increments the Gauge by 1. Use Add to increment it by arbitrary
39
// values.
40
Inc()
Callers
15
newThirdPartyLibFoo
Function · 0.95
TestWrapRegisterer
Function · 0.95
TestWrapCollector
Function · 0.95
BenchmarkGaugeNoLabels
Function · 0.95
TestToFloat64
Function · 0.95
ExampleNewExpvarCollector
Function · 0.65
Collect
Method · 0.65
ExampleGatherers
Function · 0.65
TestWriteToTextfile
Function · 0.65
BenchmarkGaugeWithLabelValues
Function · 0.65
testDelete
Function · 0.65
testDeleteLabelValues
Function · 0.65
Implementers
1
gauge
prometheus/gauge.go
Calls
no outgoing calls
Tested by
15
newThirdPartyLibFoo
Function · 0.76
TestWrapRegisterer
Function · 0.76
TestWrapCollector
Function · 0.76
BenchmarkGaugeNoLabels
Function · 0.76
TestToFloat64
Function · 0.76
ExampleNewExpvarCollector
Function · 0.52
ExampleGatherers
Function · 0.52
TestWriteToTextfile
Function · 0.52
BenchmarkGaugeWithLabelValues
Function · 0.52
testDelete
Function · 0.52
testDeleteLabelValues
Function · 0.52
testDeletePartialMatch
Function · 0.52