metrics

package
v0.0.0-...-6719cd2 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package metrics aids in defining Prometheus metrics.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Registry

type Registry struct {
	R prometheus.Registerer
}

Registry encapsulates metrics creation and registration

func (Registry) NewCounter

NewCounter returns a new created and registered Prometheus Counter

func (*Registry) NewGauge

func (mr *Registry) NewGauge(g prometheus.GaugeOpts) prometheus.Gauge

NewGauge returns a new created and registered Prometheus Gauge

func (*Registry) NewHistogram

NewHistogram returns a new and registered Prometheus Histogram

func (*Registry) NewSummary

func (mr *Registry) NewSummary(s prometheus.SummaryOpts) prometheus.Summary

NewSummary returns a new and registered Prometheus Summary

Jump to

Keyboard shortcuts

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