metrics_adapter

package module
v0.0.0-...-d715233 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrExpectedCollector = fmt.Errorf("expected collector")

Functions

func NewCounter

func NewCounter(name string, metric metrics.Counter) interface {
	prometheus.Collector
	metrics.Counter
}

NewCounter turns metric into a prometheus.Collector. The description will be taken from name.

func NewGauge

func NewGauge(name string, metric metrics.Gauge) interface {
	prometheus.Collector
	metrics.Gauge
}

NewGauge turns metric into a prometheus.Collector. The description will be taken from name.

func NewGaugeFloat64

func NewGaugeFloat64(name string, metric metrics.GaugeFloat64) interface {
	prometheus.Collector
	metrics.GaugeFloat64
}

NewGaugeFloat64 turns metric into a prometheus.Collector. The description will be taken from name.

func NewHealthcheck

func NewHealthcheck(name string, metric metrics.Healthcheck) interface {
	prometheus.Collector
	metrics.Healthcheck
}

NewHealthcheck turns metric into a prometheus.Collector. The description will be taken from name.

func NewHistogram

func NewHistogram(name string, metric metrics.Histogram) interface {
	prometheus.Collector
	metrics.Histogram
}

NewHistogram turns metric into a prometheus.Collector. The description will be taken from name.

func NewMeter

func NewMeter(name string, metric metrics.Meter) interface {
	prometheus.Collector
	metrics.Meter
}

NewMeter turns metric into a prometheus.Collector. The description will be taken from name.

func NewRegistry

func NewRegistry(registerer prometheus.Registerer) metrics.Registry

NewRegistry turns registerer into a metrics.Registry.

func NewTimer

func NewTimer(name string, metric metrics.Timer) interface {
	prometheus.Collector
	metrics.Timer
}

NewTimer turns metric into a prometheus.Collector. The description will be taken from name.

Types

This section is empty.

Jump to

Keyboard shortcuts

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