collector

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsInvalidConfig added in v1.3.0

func IsInvalidConfig(err error) bool

Types

type Cluster added in v1.3.0

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

func NewCluster added in v1.3.0

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

func (*Cluster) Collect added in v1.3.0

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

func (*Cluster) Describe added in v1.3.0

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

type ClusterConfig added in v1.3.0

type ClusterConfig 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. There is also the benefit of the helper type kept private so we do not need to expose this magic.

func NewSet

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

type SetConfig

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

Jump to

Keyboard shortcuts

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