metrics

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2020 License: LGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Counter

type Counter interface {
	Inc()
	Add(float64)
}

Counter represents a counter metric

type CounterVec

type CounterVec interface {
	WithLabelValues(lvs ...string) Counter
}

CounterVec represents a vector of labelled counters

type Gauge

type Gauge interface {
	Set(float64)
	Add(float64)
}

Gauge represents a gauge metric

type GaugeVec

type GaugeVec interface {
	WithLabelValues(lvs ...string) Gauge
}

GaugeVec represents a vector of labelled gauges

type Histogram

type Histogram interface {
	Observe(float64)
}

Histogram represents a histogram metric

type WrappedCounterVec

type WrappedCounterVec struct {
	// contains filtered or unexported fields
}

WrappedCounterVec wraps a prometheus CounterVec

func NewWrappedCounterVec

func NewWrappedCounterVec(opts prometheus.CounterOpts, labelNames []string) *WrappedCounterVec

NewWrappedCounterVec creates a prometheus CounterVec that is wrapped

func (*WrappedCounterVec) WithLabelValues

func (wG *WrappedCounterVec) WithLabelValues(lvs ...string) Counter

WithLabelValues implements the WithLabelValues to meet the CounterVec interface

type WrappedGaugeVec

type WrappedGaugeVec struct {
	// contains filtered or unexported fields
}

WrappedGaugeVec wraps a prometheus GaugeVec

func NewWrappedGaugeVec

func NewWrappedGaugeVec(opts prometheus.GaugeOpts, labelNames []string) *WrappedGaugeVec

NewWrappedGaugeVec creates a prometheus GaugeVec that is wrapped

func (*WrappedGaugeVec) WithLabelValues

func (wG *WrappedGaugeVec) WithLabelValues(lvs ...string) Gauge

WithLabelValues implements the WithLabelValues to meet the GaugeVec interface

Jump to

Keyboard shortcuts

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