MCPcopy Create free account
hub / github.com/cortexproject/cortex / NewInstrumentationServer

Function NewInstrumentationServer

tools/querytee/instrumentation.go:23–28  ·  view source on GitHub ↗

NewInstrumentationServer returns a server exposing Prometheus metrics.

(port int, registry *prometheus.Registry)

Source from the content-addressed store, hash-verified

21
22// NewInstrumentationServer returns a server exposing Prometheus metrics.
23func NewInstrumentationServer(port int, registry *prometheus.Registry) *InstrumentationServer {
24 return &InstrumentationServer{
25 port: port,
26 registry: registry,
27 }
28}
29
30// Start the instrumentation server.
31func (s *InstrumentationServer) Start() error {

Callers 1

mainFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected