MCPcopy
hub / github.com/dunglas/mercure / PrometheusMetrics

Struct PrometheusMetrics

metrics.go:27–32  ·  view source on GitHub ↗

PrometheusMetrics store Hub collected metrics.

Source from the content-addressed store, hash-verified

25
26// PrometheusMetrics store Hub collected metrics.
27type PrometheusMetrics struct {
28 registry prometheus.Registerer
29 subscribersTotal prometheus.Counter
30 subscribers prometheus.Gauge
31 updatesTotal prometheus.Counter
32}
33
34// NewPrometheusMetrics creates a Prometheus metrics collector.
35// This method must be called only one time, or it will panic.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected