collectors

package
v0.18.3 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CounterType   = "counter"
	HistogramType = "histogram"
	GaugeType     = "gauge"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Counter

type Counter struct{}

func (*Counter) Dec added in v0.15.6

func (c *Counter) Dec(_ prometheus.Collector, _ ...string) error

func (*Counter) Inc added in v0.15.6

func (c *Counter) Inc(collector prometheus.Collector, labels ...string) error

func (*Counter) Type

func (c *Counter) Type() string

func (*Counter) Update

func (c *Counter) Update(collector prometheus.Collector, value float64, labels ...string) error

type Gauge

type Gauge struct{}

func (*Gauge) Dec added in v0.6.0

func (g *Gauge) Dec(collector prometheus.Collector, labels ...string) error

func (*Gauge) Inc added in v0.6.0

func (g *Gauge) Inc(collector prometheus.Collector, labels ...string) error

func (*Gauge) Type

func (g *Gauge) Type() string

func (*Gauge) Update

func (g *Gauge) Update(collector prometheus.Collector, value float64, labels ...string) error

type Histogram

type Histogram struct{ Buckets []float64 }

func (*Histogram) Type

func (h *Histogram) Type() string

func (*Histogram) Update

func (h *Histogram) Update(collector prometheus.Collector, value float64, labels ...string) error

Jump to

Keyboard shortcuts

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