collectors

package
v3.0.0-...-d6c4d9c Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2023 License: Apache-2.0 Imports: 15 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.

func MustRegisterExternalClusterCollector

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

MustRegisterExternalClusterCollector registers the cluster collector at the given prometheus registry.

func MustRegisterS3Collector

func MustRegisterS3Collector(minioClient *minio.Client, client ctrlruntimeclient.Reader, bucket string, logger *zap.SugaredLogger)

MustRegisterS3Collector registers the S3 collector.

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.

type ExternalClusterCollector

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

ExternalClusterCollector exports metrics for external cluster resources.

func (ExternalClusterCollector) Collect

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

Collect gets called by prometheus to collect the metrics.

func (ExternalClusterCollector) Describe

func (cc ExternalClusterCollector) 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