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

Method Inc

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

Inc increments the Gauge by 1. Use Add to increment it by arbitrary values.

()

Source from the content-addressed store, hash-verified

38 // Inc increments the Gauge by 1. Use Add to increment it by arbitrary
39 // values.
40 Inc()
41 // Dec decrements the Gauge by 1. Use Sub to decrement it by arbitrary
42 // values.
43 Dec()

Callers 15

ExampleGaugeVecFunction · 0.65
ExampleCounterVecFunction · 0.65
ExampleRegisterFunction · 0.65
TestCounterAddFunction · 0.65
TestCounterAddInfFunction · 0.65
testHandlerFunction · 0.65
TestWriteToTextfileFunction · 0.65
BenchmarkCounterFunction · 0.65
testDeletePartialMatchFunction · 0.65
testMetricVecFunction · 0.65
testConstrainedMetricVecFunction · 0.65

Implementers 1

gaugeprometheus/gauge.go

Calls

no outgoing calls

Tested by 15

ExampleGaugeVecFunction · 0.52
ExampleCounterVecFunction · 0.52
ExampleRegisterFunction · 0.52
TestCounterAddFunction · 0.52
TestCounterAddInfFunction · 0.52
testHandlerFunction · 0.52
TestWriteToTextfileFunction · 0.52
BenchmarkCounterFunction · 0.52
testDeletePartialMatchFunction · 0.52
testMetricVecFunction · 0.52
testConstrainedMetricVecFunction · 0.52