MCPcopy Index your code
hub / github.com/DoNewsCode/core / MetricsModule

Struct MetricsModule

srvhttp/metrics.go:16–16  ·  view source on GitHub ↗

MetricsModule exposes prometheus metrics to `/metrics`. This is the standard route for prometheus metrics scrappers.

Source from the content-addressed store, hash-verified

14// MetricsModule exposes prometheus metrics to `/metrics`. This is the standard route
15// for prometheus metrics scrappers.
16type MetricsModule struct{}
17
18// ProvideHTTP implements container.HTTPProvider
19func (m MetricsModule) ProvideHTTP(router *mux.Router) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected