MCPcopy Create free account
hub / github.com/imgproxy/imgproxy / StartPrometheus

Method StartPrometheus

monitoring/monitoring.go:108–115  ·  view source on GitHub ↗

StartPrometheus starts the Prometheus metrics server

(cancel context.CancelFunc)

Source from the content-addressed store, hash-verified

106
107// StartPrometheus starts the Prometheus metrics server
108func (m *Monitoring) StartPrometheus(cancel context.CancelFunc) error {
109 for _, monitor := range m.monitors {
110 if prom, ok := monitor.(*prometheus.Prometheus); ok {
111 return prom.StartServer(cancel)
112 }
113 }
114 return nil
115}
116
117// StartRequest starts a new request span
118func (m *Monitoring) StartRequest(

Callers 1

StartServerMethod · 0.80

Calls 1

StartServerMethod · 0.45

Tested by

no test coverage detected