MCPcopy Index your code
hub / github.com/php/frankenphp / PrometheusMetrics

Struct PrometheusMetrics

metrics.go:84–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82func (n nullMetrics) DequeuedRequest() {}
83
84type PrometheusMetrics struct {
85 registry prometheus.Registerer
86 totalThreads prometheus.Counter
87 busyThreads prometheus.Gauge
88 totalWorkers *prometheus.GaugeVec
89 busyWorkers *prometheus.GaugeVec
90 readyWorkers *prometheus.GaugeVec
91 workerCrashes *prometheus.CounterVec
92 workerRestarts *prometheus.CounterVec
93 workerRequestTime *prometheus.CounterVec
94 workerRequestCount *prometheus.CounterVec
95 workerQueueDepth *prometheus.GaugeVec
96 queueDepth prometheus.Gauge
97 mu sync.RWMutex
98}
99
100func (m *PrometheusMetrics) StartWorker(name string) {
101 m.mu.RLock()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected