collector

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 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 Counter

type Counter int64

func (*Counter) Get

func (c *Counter) Get() int64

func (*Counter) Inc

func (c *Counter) Inc() int64

type SNOWCollector

type SNOWCollector struct {
	Cache         *cache.Cache
	Client        *snow.Client
	Logger        *zap.SugaredLogger
	ErrorCounter  *Counter
	ScrapeCounter *Counter
}

func (*SNOWCollector) Collect

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

func (*SNOWCollector) Describe

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

func (*SNOWCollector) Run

func (c *SNOWCollector) Run(ctx context.Context) error

type StatisticsCollector

type StatisticsCollector struct {
	Cache        *cache.Cache
	Logger       *zap.SugaredLogger
	ErrorCounter *Counter
}

func (*StatisticsCollector) Collect

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

func (*StatisticsCollector) Describe

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

func (*StatisticsCollector) Run

Jump to

Keyboard shortcuts

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