metrics

package
v0.0.0-...-7ca00ca Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultMetrics = initMetrics()
)

Functions

func Update

func Update(snapshot *models.RouteSnapshot)

Types

type Metrics

type Metrics struct {
	Handler        http.Handler
	ObservedValues ObservedValues
}

type ObservedValues

type ObservedValues struct {
	LastUpdatedAt  prometheus.Gauge
	NumberOfRoutes prometheus.Gauge
}

Jump to

Keyboard shortcuts

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