metrics

package
v0.0.0-...-0a453af Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2016 License: MIT Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateCounter

func CreateCounter(name string, namespace string, subsystem string, help string, labels map[string]string) (counter prometheus.Counter, err error)

func CreateCounterVector

func CreateCounterVector(name string, namespace string, subsystem string, help string, labels map[string]string, labelNames []string) (counterVec *prometheus.CounterVec, err error)

func CreateGauge

func CreateGauge(name string, namespace string, subsystem string, help string, labels map[string]string) (gauge prometheus.Gauge, err error)

func CreateGaugeVector

func CreateGaugeVector(name string, namespace string, subsystem string, help string, labels map[string]string, labelNames []string) (gaugeVec *prometheus.GaugeVec, err error)

func CreateHistogram

func CreateHistogram(name string, namespace string, subsystem string, help string, labels map[string]string, buckets ...[]float64) (histogram prometheus.Histogram, err error)

func CreateHistogramVector

func CreateHistogramVector(name string, namespace string, subsystem string, help string, labels map[string]string, labelNames []string, buckets ...[]float64) (histogramVec *prometheus.HistogramVec, err error)

func InitCounterVector

func InitCounterVector(counterVec *prometheus.CounterVec, labels []string)

initialize a counter vector with given labels, setting values to 0

func StartPrometheusMetricsServer

func StartPrometheusMetricsServer(name string, logger *logger.Logger, port int) error

Types

type PrometheusId

type PrometheusId struct {
	Name    string
	Address string
	Port    int
	ID      string
}

Jump to

Keyboard shortcuts

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