collector

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2022 License: MIT Imports: 9 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 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

type VmanageCollector

type VmanageCollector struct {
	Cache         *cache.Cache
	Client        *vmanage.Client
	Logger        *zap.SugaredLogger
	ErrorCounter  *Counter
	ScrapeCounter *Counter
}

func (*VmanageCollector) Collect

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

func (*VmanageCollector) Describe

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

func (*VmanageCollector) Run

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

Jump to

Keyboard shortcuts

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