metrics

package
v1.5.5 Latest Latest
Warning

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

Go to latest
Published: May 16, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MetricsServer added in v1.5.3

type MetricsServer struct {
	*http.Server
	// contains filtered or unexported fields
}

func NewMetricsServer

func NewMetricsServer(port int) *MetricsServer

NewMetricsServer returns a new prometheus server which collects api server metrics

func (*MetricsServer) IncRedisRequest added in v1.5.3

func (m *MetricsServer) IncRedisRequest(failed bool)

func (*MetricsServer) ObserveRedisRequestDuration added in v1.5.5

func (m *MetricsServer) ObserveRedisRequestDuration(duration time.Duration)

ObserveRedisRequestDuration observes redis request duration

Jump to

Keyboard shortcuts

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