metricshandler

package
v0.0.17 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 6, 2023 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MetricsPath = "/metrics"
)

Variables

This section is empty.

Functions

func RegisterSelfMetrics

func RegisterSelfMetrics()

Types

type MetricsHandler

type MetricsHandler struct {
	client.Client
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL