MCPcopy Index your code
hub / github.com/coder/coder / PromGaugeGathered

Function PromGaugeGathered

testutil/prometheus.go:42–45  ·  view source on GitHub ↗
(t testing.TB, metrics []*dto.MetricFamily, name string, labels ...string)

Source from the content-addressed store, hash-verified

40}
41
42func PromGaugeGathered(t testing.TB, metrics []*dto.MetricFamily, name string, labels ...string) bool {
43 t.Helper()
44 return getMetric(t, metrics, name, labels...) != nil
45}
46
47func getValue(t testing.TB, metrics []*dto.MetricFamily, kind kind, name string, labels ...string) float64 {
48 m := getMetric(t, metrics, name, labels...)

Callers 1

TestProxy_MITMFunction · 0.92

Calls 2

getMetricFunction · 0.85
HelperMethod · 0.65

Tested by 1

TestProxy_MITMFunction · 0.74