xprometheus

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2020 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PrometheusHandler

type PrometheusHandler struct {
	// contains filtered or unexported fields
}

func NewPrometheusHandler

func NewPrometheusHandler(namespace *string) *PrometheusHandler

func (*PrometheusHandler) HandleRequest

func (h *PrometheusHandler) HandleRequest(path, method string, status int, duration time.Duration)

func (*PrometheusHandler) InitMetric

func (h *PrometheusHandler) InitMetric(path, method string)

Jump to

Keyboard shortcuts

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