package prometheus

import "github.com/uber/jaeger-lib/metrics/prometheus"

Index

Types

type Factory

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

Factory implements metrics.Factory backed by Prometheus registry.

func New

func New(registerer prometheus.Registerer, buckets []float64) *Factory

New creates a Factory backed by Prometheus registry. Typically the first argument should be prometheus.DefaultRegisterer.

Parameter buckets defines the buckets into which Timer observations are counted. Each element in the slice is the upper inclusive bound of a bucket. The values must be sorted in strictly increasing order. There is no need to add a highest bucket with +Inf bound, it will be added implicitly. The default value is prometheus.DefBuckets.

func (*Factory) Counter

func (f *Factory) Counter(name string, tags map[string]string) metrics.Counter

Counter implements Counter of metrics.Factory.

func (*Factory) Gauge

func (f *Factory) Gauge(name string, tags map[string]string) metrics.Gauge

Gauge implements Gauge of metrics.Factory.

func (*Factory) Namespace

func (f *Factory) Namespace(name string, tags map[string]string) metrics.Factory

Namespace implements Namespace of metrics.Factory.

func (*Factory) Timer

func (f *Factory) Timer(name string, tags map[string]string) metrics.Timer

Timer implements Timer of metrics.Factory.

Source Files

cache.go factory.go

Version
v1.2.0
Published
Nov 12, 2017
Platform
js/wasm
Imports
6 packages
Last checked
23 hours ago

Tools for package owners.