MCPcopy
hub / github.com/cortexlabs/cortex / PrometheusStatsReporter

Struct PrometheusStatsReporter

pkg/activator/request_stats.go:29–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27)
28
29type PrometheusStatsReporter struct {
30 handler http.Handler
31 inFlightRequests *prometheus.GaugeVec
32}
33
34func NewPrometheusStatsReporter() *PrometheusStatsReporter {
35 inFlightRequestsGauge := promauto.NewGaugeVec(prometheus.GaugeOpts{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected