MCPcopy
hub / github.com/go-kit/kit / Counter

Interface Counter

metrics/metrics.go:5–8  ·  view source on GitHub ↗

Counter describes a metric that accumulates values monotonically. An example of a counter is the number of received HTTP requests.

Source from the content-addressed store, hash-verified

3// Counter describes a metric that accumulates values monotonically.
4// An example of a counter is the number of received HTTP requests.
5type Counter interface {
6 With(labelValues ...string) Counter
7 Add(delta float64)
8}
9
10// Gauge describes a metric that takes specific values over time.
11// An example of a gauge is the current depth of a job queue.

Callers 8

TestCounterFunction · 0.95
TestMultiCounterFunction · 0.95
ExampleCounterFunction · 0.95
ExampleCounterFunction · 0.95
TestValueResetFunction · 0.95
TestValueResetFunction · 0.95
TestValueResetFunction · 0.95
WriteToMethod · 0.80

Implementers 15

Countermetrics/cloudwatch2/cloudwatch2.go
Countermetrics/pcp/pcp.go
Gaugemetrics/pcp/pcp.go
mockCountermetrics/multi/multi_test.go
mockGaugemetrics/multi/multi_test.go
Countermetrics/statsd/statsd.go
Gaugemetrics/statsd/statsd.go
Countermetrics/prometheus/prometheus.go
Gaugemetrics/prometheus/prometheus.go
Countermetrics/influxstatsd/influxstatsd.go
Gaugemetrics/influxstatsd/influxstatsd.go
histogramCountermetrics/internal/convert/convert.go

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…