var defaultRegistry … var DefaultGatherer … var Reset … var MustRegister … var RawMustRegister … var Register … var Registerer … var processStart … func init() { … } // Handler returns an HTTP handler for the DefaultGatherer. It is // already instrumented with InstrumentHandler (using "prometheus" as handler // name). func Handler() http.Handler { … } // HandlerWithReset returns an HTTP handler for the DefaultGatherer but invokes // registry reset if the http method is DELETE. func HandlerWithReset() http.Handler { … } // CustomRegister registers a custom collector but uses the global registry. func CustomRegister(c metrics.StableCollector) error { … } // CustomMustRegister registers custom collectors but uses the global registry. func CustomMustRegister(cs ...metrics.StableCollector) { … }