MCPcopy
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

newThirdPartyLibFooFunction · 0.95
TestWrapRegistererFunction · 0.95
TestWrapCollectorFunction · 0.95
BenchmarkGaugeNoLabelsFunction · 0.95
TestToFloat64Function · 0.95
CollectMethod · 0.65
ExampleGatherersFunction · 0.65
TestWriteToTextfileFunction · 0.65
testDeleteFunction · 0.65
testDeleteLabelValuesFunction · 0.65

Implementers 1

gaugeprometheus/gauge.go

Calls

no outgoing calls

Tested by 15

newThirdPartyLibFooFunction · 0.76
TestWrapRegistererFunction · 0.76
TestWrapCollectorFunction · 0.76
BenchmarkGaugeNoLabelsFunction · 0.76
TestToFloat64Function · 0.76
ExampleGatherersFunction · 0.52
TestWriteToTextfileFunction · 0.52
testDeleteFunction · 0.52
testDeleteLabelValuesFunction · 0.52
testDeletePartialMatchFunction · 0.52