prom

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2018 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package prom contains some utility functions for dealing with prometheus metrics.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyLabels

func CopyLabels(labels prometheus.Labels) prometheus.Labels

func NewCounter

func NewCounter(namespace, subsystem, name, help string,
	constLabels prometheus.Labels) prometheus.Counter

func NewCounterVec

func NewCounterVec(namespace, subsystem, name, help string,
	constLabels prometheus.Labels, labelNames []string) *prometheus.CounterVec

func NewGauge

func NewGauge(namespace, subsystem, name, help string,
	constLabels prometheus.Labels) prometheus.Gauge

func NewGaugeVec

func NewGaugeVec(namespace, subsystem, name, help string,
	constLabels prometheus.Labels, labelNames []string) *prometheus.GaugeVec

func NewHistogramVec

func NewHistogramVec(namespace, subsystem, name, help string, constLabels prometheus.Labels,
	labelNames []string, buckets []float64) *prometheus.HistogramVec

Types

This section is empty.

Jump to

Keyboard shortcuts

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