Documentation ¶
Index ¶
Constants ¶
View Source
const (
MetricsPath = "/metrics"
)
Variables ¶
This section is empty.
Functions ¶
func RegisterSelfMetrics ¶
func RegisterSelfMetrics()
Types ¶
type MetricsHandler ¶
MetricsHandler struct contains Stores which store the metrics to serve in the /metrics path
func (*MetricsHandler) Install ¶
func (m *MetricsHandler) Install(c *mux.PathRecorderMux)
Install adds the MetricsWithReset handler
func (*MetricsHandler) ServeHTTP ¶
func (m *MetricsHandler) ServeHTTP(w http.ResponseWriter, _ *http.Request)
ServeHTTP serves the request for /metrics path
Click to show internal directories.
Click to hide internal directories.