MCPcopy Create free account
hub / github.com/PostHog/duckgres / gaugeValue

Function gaugeValue

cmd/cache-proxy/cache_test.go:27–34  ·  view source on GitHub ↗
(t *testing.T, g prometheus.Gauge)

Source from the content-addressed store, hash-verified

25 var m dto.Metric
26 if err := c.Write(&m); err != nil {
27 t.Fatalf("read counter: %v", err)
28 }
29 return m.GetCounter().GetValue()
30}
31
32func counterVecValue(t *testing.T, c *prometheus.CounterVec, labels ...string) float64 {
33 t.Helper()
34 return counterValue(t, c.WithLabelValues(labels...))
35}
36
37func gaugeValue(t *testing.T, g prometheus.Gauge) float64 {

Calls 1

WriteMethod · 0.45

Tested by

no test coverage detected