metrics

package
v1.0.1-0...-53a0807 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NS          = "ringpop"
	MetricsPath = "/metrics"
)

Variables

This section is empty.

Functions

func Handler

func Handler() http.Handler

Handler returns HTTP handler for serving metrics

func MustRegister

func MustRegister(collectors ...prometheus.Collector)

MustRegister registers a new metric in the registry. If the metric fail to register it will panic.

func MustRegisterCounter

func MustRegisterCounter(name, help string) prometheus.Counter

MustRegisterCounter creates and registers new Counter with predefined namespace Panics if metrics with same name already registered

func NewCounter

func NewCounter(name, help string) prometheus.Counter

NewCounter creates a new Counter with predefined namespace

Types

This section is empty.

Jump to

Keyboard shortcuts

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