prometheus

package
v0.2.13 Latest Latest
Warning

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

Go to latest
Published: May 26, 2022 License: MIT Imports: 7 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

Service -

func NewService

func NewService(cfg *config.Prometheus) *Service

NewService -

func (*Service) AddHistogramValue added in v0.1.50

func (service *Service) AddHistogramValue(name string, labels map[string]string, observe float64)

AddHistogramValue -

func (*Service) Close

func (service *Service) Close() error

Close -

func (*Service) Counter

func (service *Service) Counter(name string) *prometheus.CounterVec

Counter -

func (*Service) DecGaugeValue added in v0.1.51

func (service *Service) DecGaugeValue(name string, labels map[string]string)

DecGaugeValue -

func (*Service) Gauge added in v0.1.51

func (service *Service) Gauge(name string) *prometheus.GaugeVec

Gauge -

func (*Service) Histogram added in v0.1.50

func (service *Service) Histogram(name string) *prometheus.HistogramVec

Histogram -

func (*Service) IncGaugeValue added in v0.1.51

func (service *Service) IncGaugeValue(name string, labels map[string]string)

IncGaugeValue -

func (*Service) IncrementCounter

func (service *Service) IncrementCounter(name string, labels map[string]string)

IncrementCounter -

func (*Service) RegisterCounter

func (service *Service) RegisterCounter(name, help string, labels ...string)

RegisterCounter -

func (*Service) RegisterGauge added in v0.1.51

func (service *Service) RegisterGauge(name, help string, labels ...string)

RegisterGauge -

func (*Service) RegisterGoBuildMetrics

func (service *Service) RegisterGoBuildMetrics()

RegisterGoBuildMetrics -

func (*Service) RegisterHistogram added in v0.1.50

func (service *Service) RegisterHistogram(name, help string, labels ...string)

RegisterHistogram -

func (*Service) SetGaugeValue added in v0.1.51

func (service *Service) SetGaugeValue(name string, labels map[string]string, observe float64)

SetGaugeValue -

func (*Service) Start

func (service *Service) Start()

Start -

Jump to

Keyboard shortcuts

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