Help us shape the future of Go! Take the 2026 Go Developer Survey

metrics

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// MetricsPath is the endpoint to collect application metrics
	MetricsPath = "/metrics"
)

Variables

This section is empty.

Functions

func NewAppCollector

func NewAppCollector(appLister applister.ApplicationLister) prometheus.Collector

NewAppCollector returns a prometheus collector for application metrics

func NewAppRegistry

func NewAppRegistry(appLister applister.ApplicationLister) *prometheus.Registry

NewAppRegistry creates a new prometheus registry that collects applications

func NewMetricsServer

func NewMetricsServer(port int, appLister applister.ApplicationLister) *http.Server

NewMetricsServer returns a new prometheus server which collects application metrics

Types

This section is empty.

Jump to

Keyboard shortcuts

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