metrics

package
v1.4.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Defaults DefaultMetrics

	// MustRegister registers registerable metrics but uses the defaultRegistry, panic upon the first registration that causes an error
	MustRegister func(...compbasemetrics.Registerable)
	// Register registers a collectable metric but uses the defaultRegistry
	Register        func(compbasemetrics.Registerable) error
	RawMustRegister func(...prometheus.Collector)
)

Functions

func Handler

func Handler() http.Handler

Types

type DefaultMetrics

type DefaultMetrics struct{}

func (DefaultMetrics) Install

func (m DefaultMetrics) Install(c *restful.Container)

Install adds the DefaultMetrics handler

Jump to

Keyboard shortcuts

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