collectors

package
v2.14.6+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustRegisterAddonCollector

func MustRegisterAddonCollector(registry prometheus.Registerer, client ctrlruntimeclient.Reader)

MustRegisterAddonCollector registers the addon collector at the given prometheus registry

func MustRegisterClusterCollector

func MustRegisterClusterCollector(registry prometheus.Registerer, client ctrlruntimeclient.Reader)

MustRegisterClusterCollector registers the cluster collector at the given prometheus registry

Types

type AddonCollector

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

AddonCollector exports metrics for addon resources

func (AddonCollector) Collect

func (cc AddonCollector) Collect(ch chan<- prometheus.Metric)

Collect gets called by prometheus to collect the metrics

func (AddonCollector) Describe

func (cc AddonCollector) Describe(ch chan<- *prometheus.Desc)

Describe returns the metrics descriptors

type ClusterCollector

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

ClusterCollector exports metrics for cluster resources

func (ClusterCollector) Collect

func (cc ClusterCollector) Collect(ch chan<- prometheus.Metric)

Collect gets called by prometheus to collect the metrics

func (ClusterCollector) Describe

func (cc ClusterCollector) Describe(ch chan<- *prometheus.Desc)

Describe returns the metrics descriptors

Jump to

Keyboard shortcuts

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