metric

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2021 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCollector

func NewCollector(cf *config.Config, lg *zap.Logger, bi *config.BuildInfo, st *Store) prometheus.Collector

Types

type Collector

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

func (*Collector) Collect

func (c *Collector) Collect(ch chan<- prometheus.Metric)

func (*Collector) Describe

func (c *Collector) Describe(ch chan<- *prometheus.Desc)

type Scheduler

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

func NewScheduler

func NewScheduler(cf *config.Config, lg *zap.Logger, cl *prom.Client, st *Store) *Scheduler

func (*Scheduler) Shutdown

func (s *Scheduler) Shutdown(ctx context.Context) func() error

func (*Scheduler) Start

func (s *Scheduler) Start(ctx context.Context) func() error

type Store

type Store struct {
	sync.Map
	// contains filtered or unexported fields
}

func NewStore

func NewStore(lg logs.Logger) *Store

func (*Store) ForEach

func (s *Store) ForEach(fn func(key string, del *delegate))

func (*Store) Get

func (s *Store) Get(key string) (del *delegate, err error)

func (*Store) Save

func (s *Store) Save(key string, del *delegate)

type WatchList

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

func NewWatchList

func NewWatchList(cf *config.Config, lg *zap.Logger, cl *prom.Client, st *Store) WatchList

func (WatchList) Build

func (w WatchList) Build(ctx context.Context) error

Jump to

Keyboard shortcuts

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