Documentation ¶
Index ¶
Constants ¶
View Source
const ( MetricsPath = "/metrics" MetricsRefreshPeriod = 2 * time.Second )
Variables ¶
This section is empty.
Functions ¶
func RegisterSelfMetrics ¶
func RegisterSelfMetrics()
Types ¶
type Collector ¶ added in v0.0.36
type Collector struct {
// contains filtered or unexported fields
}
type MetricsHandler ¶
MetricsHandler struct contains Stores which store the metrics to serve in the /metrics path
func (*MetricsHandler) Install ¶
func (h *MetricsHandler) Install(c *mux.PathRecorderMux)
Install adds the MetricsWithReset handler
func (*MetricsHandler) ServeHTTP ¶
func (h *MetricsHandler) ServeHTTP(w http.ResponseWriter, _ *http.Request)
ServeHTTP serves the request for /metrics path
Click to show internal directories.
Click to hide internal directories.