prometheus

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2021 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HTTPHandler

func HTTPHandler() http.Handler

Types

type Counter

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

func NewCounter

func NewCounter(name, namespace, desc string, labelNames []string, constLabels map[string]string) *Counter

func (*Counter) Add

func (c *Counter) Add(value float64, labelValues ...string)

func (*Counter) Register

func (c *Counter) Register() error

func (*Counter) Reset

func (c *Counter) Reset()

func (*Counter) Unregister

func (c *Counter) Unregister() bool

type Gauge

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

func NewGauge

func NewGauge(name, namespace, desc string, labelNames []string, constLabels map[string]string) *Gauge

func (*Gauge) Register

func (g *Gauge) Register() error

func (*Gauge) Reset

func (g *Gauge) Reset()

func (*Gauge) Set

func (g *Gauge) Set(value float64, labelValues ...string)

func (*Gauge) Unregister

func (g *Gauge) Unregister() bool

type Histogram

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

func NewHistogram

func NewHistogram(name, namespace, desc string, buckets []float64, labelNames []string, constLabels map[string]string) *Histogram

func (*Histogram) Observe

func (h *Histogram) Observe(value float64, labelValues ...string)

func (*Histogram) Register

func (h *Histogram) Register() error

func (*Histogram) Reset

func (h *Histogram) Reset()

func (*Histogram) Unregister

func (h *Histogram) Unregister() bool

Jump to

Keyboard shortcuts

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