metrics

package
v1.9.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterInfoCollector added in v1.9.0

type ClusterInfoCollector struct {
	Client client.Client

	Namespace string
}

ClusterInfoCollector is a Prometheus collector that collects cluster info metrics.

func (*ClusterInfoCollector) Collect added in v1.9.0

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

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

func (*ClusterInfoCollector) Describe added in v1.9.0

func (*ClusterInfoCollector) Describe(chan<- *prometheus.Desc)

Describe implements prometheus.Collector. Sends the descriptors of the metrics to the channel.

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.

type TenantInfoCollector added in v1.9.0

type TenantInfoCollector struct {
	Client client.Client

	Namespace string
}

TenantInfoCollector is a Prometheus collector that collects tenant info metrics.

func (*TenantInfoCollector) Collect added in v1.9.0

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

Collect implements prometheus.Collector. Iterates over all tenants and sends tenant information for each tenant.

func (*TenantInfoCollector) Describe added in v1.9.0

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

Describe implements prometheus.Collector. Sends the descriptors of the metrics to the channel.

Jump to

Keyboard shortcuts

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