cluster

package
v3.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2023 License: Apache-2.0 Imports: 15 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 *capiv1beta1.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 *capiv1beta1.Cluster, ch chan<- prometheus.Metric) error

func (*Conditions) Describe

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

type NodePools

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

func NewNodePools

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

func (*NodePools) Collect

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

func (*NodePools) Describe

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

type Releases

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

func NewReleases

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

func (*Releases) Collect

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

func (*Releases) Describe

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 *capiv1beta1.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