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

Method Inc

prometheus/counter.go:41–41  ·  view source on GitHub ↗

Inc increments the counter by 1. Use Add to increment it by arbitrary non-negative values.

()

Source from the content-addressed store, hash-verified

39 // Inc increments the counter by 1. Use Add to increment it by arbitrary
40 // non-negative values.
41 Inc()
42 // Add adds the given value to the counter. It panics if the value is <
43 // 0.
44 Add(float64)

Callers 12

ExampleRegisterFunction · 0.95
TestWrapRegistererFunction · 0.95
BenchmarkCounterNoLabelsFunction · 0.95
BenchmarkParallelCounterFunction · 0.95
TestCollectAndCompareFunction · 0.95
TestNoMetricFilterFunction · 0.95
TestMetricNotFoundFunction · 0.95
startFireKeeperFunction · 0.95
startSparkForgeFunction · 0.95

Implementers 2

counterprometheus/counter.go
gaugeprometheus/gauge.go

Calls

no outgoing calls

Tested by 10

ExampleRegisterFunction · 0.76
TestWrapRegistererFunction · 0.76
BenchmarkCounterNoLabelsFunction · 0.76
BenchmarkParallelCounterFunction · 0.76
TestCollectAndCompareFunction · 0.76
TestNoMetricFilterFunction · 0.76
TestMetricNotFoundFunction · 0.76