MCPcopy
hub / github.com/prometheus/pushgateway / InstrumentWithCounter

Function InstrumentWithCounter

handler/metrics.go:50–55  ·  view source on GitHub ↗
(handlerName string, handler http.Handler)

Source from the content-addressed store, hash-verified

48)
49
50func InstrumentWithCounter(handlerName string, handler http.Handler) http.HandlerFunc {
51 return promhttp.InstrumentHandlerCounter(
52 httpCnt.MustCurryWith(prometheus.Labels{"handler": handlerName}),
53 handler,
54 )
55}

Callers 8

RegisterMethod · 0.92
PushFunction · 0.85
StatusFunction · 0.85
DeleteFunction · 0.85
HealthyFunction · 0.85
ReadyFunction · 0.85
StaticFunction · 0.85
WipeMetricStoreFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…