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

Function createPrometheusMetrics

metrics_test.go:13–20  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11)
12
13func createPrometheusMetrics() *PrometheusMetrics {
14 return &PrometheusMetrics{
15 registry: prometheus.NewRegistry(),
16 totalThreads: prometheus.NewCounter(prometheus.CounterOpts{Name: "frankenphp_total_threads"}),
17 busyThreads: prometheus.NewGauge(prometheus.GaugeOpts{Name: "frankenphp_busy_threads"}),
18 queueDepth: prometheus.NewGauge(prometheus.GaugeOpts{Name: "frankenphp_queue_depth"}),
19 }
20}
21
22func TestPrometheusMetrics_TotalWorkers(t *testing.T) {
23 m := createPrometheusMetrics()

Calls

no outgoing calls

Tested by

no test coverage detected