prometheus

package
v0.0.0-...-c439057 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2022 License: MIT Imports: 7 Imported by: 0

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

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

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

DecGaugeValue -

func (*Service) Gauge

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

Gauge -

func (*Service) Histogram

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

Histogram -

func (*Service) IncGaugeValue

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

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

RegisterGauge -

func (*Service) RegisterGoBuildMetrics

func (service *Service) RegisterGoBuildMetrics()

RegisterGoBuildMetrics -

func (*Service) RegisterHistogram

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

RegisterHistogram -

func (*Service) SetGaugeValue

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