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

Method Add

prometheus/gauge.go:46–46  ·  prometheus/gauge.go::Gauge.Add

Add adds the given value to the Gauge. (The value can be negative, resulting in a decrease of the Gauge.)

(float64)

Source from the content-addressed store, hash-verified

44 // Add adds the given value to the Gauge. (The value can be negative,
45 // resulting in a decrease of the Gauge.)
46 Add(float64)
47 // Sub subtracts the given value from the Gauge. (The value can be
48 // negative, resulting in an increase of the Gauge.)
49 Sub(float64)

Callers 15

ExampleGaugeFunction · 0.95
TestGaugeConcurrencyFunction · 0.95
CollectMethod · 0.65
benchmarkSummaryObserveFunction · 0.65
benchmarkSummaryWriteFunction · 0.65
TestSummaryConcurrencyFunction · 0.65
TestSummaryDecayFunction · 0.65
collectGoMetricsFunction · 0.65
ExampleGaugeVecFunction · 0.65
ExampleCounterVecFunction · 0.65

Implementers 1

gaugeprometheus/gauge.go

Calls

no outgoing calls

Tested by 15

ExampleGaugeFunction · 0.76
TestGaugeConcurrencyFunction · 0.76
benchmarkSummaryObserveFunction · 0.52
benchmarkSummaryWriteFunction · 0.52
TestSummaryConcurrencyFunction · 0.52
TestSummaryDecayFunction · 0.52
collectGoMetricsFunction · 0.52
ExampleGaugeVecFunction · 0.52
ExampleCounterVecFunction · 0.52
TestCounterAddFunction · 0.52