collector

package
v5.8.0-patch2 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GaugeValue float64 = 1
)

Variables

This section is empty.

Functions

func IsInvalidConfig

func IsInvalidConfig(err error) bool

IsInvalidConfig asserts invalidConfigError.

Types

type Cluster

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

func NewCluster

func NewCluster(config ClusterConfig) (*Cluster, error)

func (*Cluster) Collect

func (c *Cluster) Collect(ch chan<- prometheus.Metric) error

func (*Cluster) Describe

func (c *Cluster) Describe(ch chan<- *prometheus.Desc) error

type ClusterConfig

type ClusterConfig struct {
	K8sClient k8sclient.Interface
	Logger    micrologger.Logger

	NewCommonClusterObjectFunc func() infrastructurev1alpha3.CommonClusterObject
	Provider                   string
}

type ClusterTransition

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

ClusterTransition implements the ClusterTransition interface, exposing cluster transition information.

func NewClusterTransition

func NewClusterTransition(config ClusterTransitionConfig) (*ClusterTransition, error)

NewClusterTransition initiates cluster transition metrics

func (*ClusterTransition) Collect

func (ct *ClusterTransition) Collect(ch chan<- prometheus.Metric) error

func (*ClusterTransition) Describe

func (ct *ClusterTransition) Describe(ch chan<- *prometheus.Desc) error

type ClusterTransitionConfig

type ClusterTransitionConfig struct {
	K8sClient k8sclient.Interface
	Logger    micrologger.Logger

	NewCommonClusterObjectFunc func() infrastructurev1alpha3.CommonClusterObject
	Provider                   string
}

type NodePool

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

func NewNodePool

func NewNodePool(config NodePoolConfig) (*NodePool, error)

func (*NodePool) Collect

func (np *NodePool) Collect(ch chan<- prometheus.Metric) error

func (*NodePool) Describe

func (np *NodePool) Describe(ch chan<- *prometheus.Desc) error

type NodePoolConfig

type NodePoolConfig struct {
	K8sClient k8sclient.Interface
	Logger    micrologger.Logger
}

type Set

type Set struct {
	*collector.Set
}

Set is basically only a wrapper for the operator's collector implementations. It eases the initialization and prevents some weird import mess so we do not have to alias packages.

func NewSet

func NewSet(config SetConfig) (*Set, error)

type SetConfig

type SetConfig struct {
	CertSearcher certs.Interface
	K8sClient    k8sclient.Interface
	Logger       micrologger.Logger

	NewCommonClusterObjectFunc func() infrastructurev1alpha3.CommonClusterObject
	Provider                   string
}

Jump to

Keyboard shortcuts

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