prometheus

package
v0.0.3-rc-6 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2022 License: Apache-2.0 Imports: 9 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
}

func NewService

func NewService(assetsService service.Assets, isMonitoringEnabled bool) *Service

func (*Service) ConstructMetricName

func (s *Service) ConstructMetricName(sourceNetworkId, targetNetworkId uint64, asset, transactionId, metricType string) (string, error)

func (*Service) CreateCounterIfNotExists

func (s *Service) CreateCounterIfNotExists(opts prometheus.CounterOpts) prometheus.Counter

func (*Service) CreateGaugeIfNotExists

func (s *Service) CreateGaugeIfNotExists(opts prometheus.GaugeOpts) prometheus.Gauge

func (*Service) CreateSuccessRateGaugeIfNotExists

func (s *Service) CreateSuccessRateGaugeIfNotExists(transactionId string, sourceChainId, targetChainId uint64, asset, metricType, metricHelp string) (prometheus.Gauge, error)

func (*Service) DeleteCounter

func (s *Service) DeleteCounter(name string)

func (*Service) DeleteGauge

func (s *Service) DeleteGauge(name string)

func (*Service) GetCounter

func (s *Service) GetCounter(name string) prometheus.Counter

func (*Service) GetGauge

func (s *Service) GetGauge(name string) prometheus.Gauge

func (*Service) GetIsMonitoringEnabled

func (s *Service) GetIsMonitoringEnabled() bool

Jump to

Keyboard shortcuts

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