collector

package
v0.0.0-...-5d6e387 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MetricsNamespace = "managed_upgrade"
)

generics for metric construction

Variables

This section is empty.

Functions

func NewUpgradeCollector

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

Consturct a new UpgradeCollector and return to caller.

Types

type ManagedOSMetrics

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

ManagedOSMetrics holds fields that contain upgrade metrics required to report during an upgrade. These metrics will be consistent regardless of the the upgrade.spec.type.

type UpgradeCollector

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

UpgradeCollector is implementing prometheus.Collector interface. All these metrics will need to be registered at bootstrap via main.go as we can not all MustRegister every Reconcile.

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.

Jump to

Keyboard shortcuts

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