prometheus

package
v0.0.0-...-c40edbd Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pusher

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

func NewPusher

func NewPusher() *Pusher

func (*Pusher) AddCounter

func (p *Pusher) AddCounter(name string, description string) *Pusher

func (*Pusher) AddCounterWithLable

func (p *Pusher) AddCounterWithLable(name string, description string, labels map[string]string) *Pusher

func (*Pusher) AddGauge

func (p *Pusher) AddGauge(name string, description string) *Pusher

func (*Pusher) AddGaugeWithLabel

func (p *Pusher) AddGaugeWithLabel(name string, description string, labels map[string]string) *Pusher

func (*Pusher) AddHistogram

func (p *Pusher) AddHistogram(name string, description string) *Pusher

func (*Pusher) AddHistogramWithLabels

func (p *Pusher) AddHistogramWithLabels(name string, description string, labels map[string]string) *Pusher

func (*Pusher) IncrCounter

func (p *Pusher) IncrCounter(name string, value int) error

func (*Pusher) IncrGauge

func (p *Pusher) IncrGauge(name string, value int) error

func (*Pusher) ObserveHistogram

func (p *Pusher) ObserveHistogram(name string, value int) error

func (*Pusher) Push

func (p *Pusher) Push() error

func (*Pusher) SetGauge

func (p *Pusher) SetGauge(name string, value int) error

func (*Pusher) Start

func (p *Pusher) Start(ctx context.Context)

Jump to

Keyboard shortcuts

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