collector

package
v0.0.0-...-a56079f Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewUpgradeCollector

func NewUpgradeCollector(c client.Client) (prometheus.Collector, error)

NewUpgradeCollector constructs a new UpgradeCollector and return to caller.

Types

type UpgradeCollector

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

UpgradeCollector is implementing prometheus.Collector interface.

func (*UpgradeCollector) Collect

func (uc *UpgradeCollector) Collect(ch chan<- prometheus.Metric)

Collect is method required to implement the prometheus.Collector(prometheus/client_golang/prometheus/collector.go) interface.

func (*UpgradeCollector) Describe

func (uc *UpgradeCollector) Describe(ch chan<- *prometheus.Desc)

Describe implements the prometheus.Collector interface.

type UpgradeMetrics

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

UpgradeMetrics holds fields that contain upgrade metrics required to report during an upgrade.

Jump to

Keyboard shortcuts

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