k8s.io/component-base/metrics.NewCounterVec
third-partyThe 1550th most-called third-party function by production calls. Called 402 times across 8 modules; 396 of those run outside tests and generated code.
- prod calls
- 396
- non-test, non-generated
- all calls
- 402
- total callsites
- modules
- 8
- distinct callers
- in loop
- 0%
- of prod calls
- in tests
- 1%
- 6 calls
- resolved
- 100%
- to a known target
resolution mix
How each call resolves
How each call was attributed. Only resolved kinds, where the target function is known, count toward the ranking. Interface dispatch and unresolved receivers are reported separately and never guessed. Read the taxonomy →
- Package function4%A direct call to an exported package function, resolved by type.
- Package function (by syntax)96%A package function in a module outside the crawl, keyed by import path.
who calls this
Notable callers
Production calls into NewCounterVec from notable Go projects. Open one on the map to see what else it hammers.
- Kubernetes 395 100%
where it's called
Callsites in the wild
12 representative callsites of 402, prioritizing in-loop and non-test usage. We link to source, never display it.
-
k8s.io/component-base @v0.36.3
metrics/counter_test.go:347
in loop test -
k8s.io/component-base @v0.36.3
metrics/counter_test.go:416
in loop test -
k8s.io/component-base @v0.36.3
metrics/testutil/metrics_test.go:664
in loop test -
kubernetes/kubernetes @master
staging/src/k8s.io/component-base/metrics/testutil/metrics_test.go:664 ↗
in loop test -
kubesphere/kubesphere @v0.0.0-20260715011438-04a29b5c6014
-
k8s.io/component-base @v0.36.3
metrics/prometheus/meta/metrics.go:24
-
kubernetes/kubernetes @master
staging/src/k8s.io/component-base/metrics/prometheus/meta/metrics.go:24 ↗
-
k8s.io/apiextensions-apiserver @v0.36.3
pkg/controller/openapi/metrics.go:25
-
k8s.io/kube-aggregator @v0.36.3
pkg/controllers/openapi/aggregator/metrics.go:25
-
k8s.io/apiextensions-apiserver @v0.36.3
pkg/controller/openapiv3/metrics.go:25
-
kubernetes/kubernetes @master
staging/src/k8s.io/apiextensions-apiserver/pkg/controller/openapi/metrics.go:25 ↗
-
kubernetes/kubernetes @master
staging/src/k8s.io/apiextensions-apiserver/pkg/controller/openapiv3/metrics.go:25 ↗
top callers
The modules that reach for it
The modules that call NewCounterVec most in this snapshot.
- github.com/kubernetes/kubernetes21052%
- k8s.io/kubernetes9423%
- k8s.io/apiserver7218%
- k8s.io/component-base184%
- k8s.io/apiextensions-apiserver3<1%
siblings
More from k8s.io/component-base/metrics
The other most-called functions in this package. See all →