cluster

package
v2.13.0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MetricsNamespace = "azure_operator"
)

Variables

This section is empty.

Functions

func IsInvalidConfig

func IsInvalidConfig(err error) bool

IsInvalidConfig asserts invalidConfigError.

Types

type ClusterCollector

type ClusterCollector interface {
	Collect(ctx context.Context, cr *capiv1alpha3.Cluster, ch chan<- prometheus.Metric) error
	Describe(ch chan<- *prometheus.Desc) error
}

type Collectors

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

func NewCollectors

func NewCollectors(ctrlClient client.Client, logger micrologger.Logger) (*Collectors, error)

func (*Collectors) Add

func (c *Collectors) Add(cc ClusterCollector)

func (*Collectors) Collect

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

func (*Collectors) Describe

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

type Conditions

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

func NewConditions

func NewConditions(ctrlClient client.Client, logger micrologger.Logger) (*Conditions, error)

func (*Conditions) Collect

func (c *Conditions) Collect(ctx context.Context, cluster *capiv1alpha3.Cluster, ch chan<- prometheus.Metric) error

func (*Conditions) Describe

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

type NodePools added in v2.9.0

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

func NewNodePools added in v2.9.0

func NewNodePools(ctrlClient client.Client, logger micrologger.Logger) (*NodePools, error)

func (*NodePools) Collect added in v2.9.0

func (n *NodePools) Collect(ctx context.Context, cluster *capiv1alpha3.Cluster, ch chan<- prometheus.Metric) error

func (*NodePools) Describe added in v2.9.0

func (n *NodePools) Describe(ch chan<- *prometheus.Desc) error

type Releases added in v2.4.0

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

func NewReleases added in v2.4.0

func NewReleases(ctrlClient client.Client, logger micrologger.Logger) (*Releases, error)

func (*Releases) Collect added in v2.4.0

func (c *Releases) Collect(ctx context.Context, cluster *capiv1alpha3.Cluster, ch chan<- prometheus.Metric) error

func (*Releases) Describe added in v2.4.0

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

type TransitionTime

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

func NewTransitionTime

func NewTransitionTime(ctrlClient client.Client, logger micrologger.Logger) (*TransitionTime, error)

func (*TransitionTime) Collect

func (t *TransitionTime) Collect(ctx context.Context, cluster *capiv1alpha3.Cluster, ch chan<- prometheus.Metric) error

func (*TransitionTime) Describe

func (t *TransitionTime) Describe(ch chan<- *prometheus.Desc) error

Jump to

Keyboard shortcuts

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