prometheus

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: May 11, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFactory deprecated

func NewFactory(namespace, subsystem string, buckets []float64) xkit.Factory

NewFactory creates a new metrics factory using go-kit prometheus package. buckets define the buckets into which histogram observations are counted. If buckets == nil, the default value prometheus.DefBuckets is used.

Deprecated: the recommended way is to use metrics/prometheus module:

import (
	"github.com/prometheus/client_golang/prometheus"
	xprom "github.com/uber/jaeger-lib/metrics/prometheus"
)

registry := prometheus.NewPedanticRegistry()
factory := xprom.New(xprom.WithRegisterer(registry))

Types

This section is empty.

Jump to

Keyboard shortcuts

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