PrometheusMetrics store Hub collected metrics.
| 25 | |
| 26 | // PrometheusMetrics store Hub collected metrics. |
| 27 | type 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. |
nothing calls this directly
no outgoing calls
no test coverage detected