MCPcopy Create free account
hub / github.com/coder/coder / Collect

Method Collect

coderd/prometheusmetrics/collector.go:51–56  ·  view source on GitHub ↗
(ch chan<- prometheus.Metric)

Source from the content-addressed store, hash-verified

49}
50
51func (v *CachedGaugeVec) Collect(ch chan<- prometheus.Metric) {
52 v.m.Lock()
53 defer v.m.Unlock()
54
55 v.gaugeVec.Collect(ch)
56}
57
58func (v *CachedGaugeVec) WithLabelValues(operation VectorOperation, value float64, labelValues ...string) {
59 switch operation {

Callers 3

TestCollector_AddFunction · 0.95
TestCollector_SetFunction · 0.95
TestCollector_Set_AddFunction · 0.95

Calls 3

CollectMethod · 0.65
LockMethod · 0.45
UnlockMethod · 0.45

Tested by 3

TestCollector_AddFunction · 0.76
TestCollector_SetFunction · 0.76
TestCollector_Set_AddFunction · 0.76