metrics

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2024 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CompileMetaCollector

type CompileMetaCollector struct {
	Client client.Client

	Namespace string
}

CompileMetaCollector is a Prometheus collector that translates the `status.compileMeta` field of the Cluster CRD into Prometheus metrics.

func (*CompileMetaCollector) Collect

func (m *CompileMetaCollector) Collect(ch chan<- prometheus.Metric)

Collect implements prometheus.Collector. Iterates over all clusters and sends compileMeta metrics for each cluster.

func (*CompileMetaCollector) Describe

func (*CompileMetaCollector) Describe(_ chan<- *prometheus.Desc)

Describe implements prometheus.Collector. This collector does not send any descriptions and thus makes the collector unchecked. An unchecked collector is needed because the commodore build info metric is dynamic and has no static description.

Jump to

Keyboard shortcuts

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