collector

package
v0.10.8 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2019 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Namespace = "chart_operator"
)

Variables

This section is empty.

Functions

func IsInvalidConfig

func IsInvalidConfig(err error) bool

IsInvalidConfig asserts invalidConfigError.

func IsInvalidExecution

func IsInvalidExecution(err error) bool

IsInvalidExecution asserts invalidExecutionError.

Types

type ChartConfigResource

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

ChartConfigResource is the main struct for this collector.

func NewChartConfigResource

func NewChartConfigResource(config ChartConfigResourceConfig) (*ChartConfigResource, error)

NewChartConfigResource creates a new ChartConfigResource metrics collector.

func (*ChartConfigResource) Collect

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

func (*ChartConfigResource) Describe

func (a *ChartConfigResource) Describe(ch chan<- *prometheus.Desc) error

Describe emits the description for the metrics collected here.

type ChartConfigResourceConfig

type ChartConfigResourceConfig struct {
	G8sClient versioned.Interface
	Logger    micrologger.Logger
}

ChartConfigResourceConfig is this collector's configuration struct.

type Set

type Set struct {
	*collector.Set
}

Set is basically only a wrapper for the operator's collector implementations. It eases the iniitialization 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 {
	G8sClient  versioned.Interface
	K8sClient  kubernetes.Interface
	HelmClient *helmclient.Client
	Logger     micrologger.Logger

	TillerNamespace string
}

type TillerMaxHistory

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

TillerMaxHistory is the main struct for this collector.

func NewTillerMaxHistory

func NewTillerMaxHistory(config TillerMaxHistoryConfig) (*TillerMaxHistory, error)

NewTillerMaxHistory creates a new TillerMaxHistory metrics collector.

func (*TillerMaxHistory) Collect

func (t *TillerMaxHistory) Collect(ch chan<- prometheus.Metric) error

func (*TillerMaxHistory) Describe

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

Describe emits the description for the metrics collected here.

type TillerMaxHistoryConfig

type TillerMaxHistoryConfig struct {
	G8sClient versioned.Interface
	K8sClient kubernetes.Interface
	Logger    micrologger.Logger

	TillerNamespace string
}

TillerMaxHistoryConfig is this collector's configuration struct.

type TillerReachable

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

TillerReachable is the main struct for this collector.

func NewTillerReachable

func NewTillerReachable(config TillerReachableConfig) (*TillerReachable, error)

NewTillerReachable creates a new TillerReachable metrics collector.

func (*TillerReachable) Collect

func (t *TillerReachable) Collect(ch chan<- prometheus.Metric) error

func (*TillerReachable) Describe

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

Describe emits the description for the metrics collected here.

type TillerReachableConfig

type TillerReachableConfig struct {
	G8sClient  versioned.Interface
	HelmClient helmclient.Interface
	Logger     micrologger.Logger

	TillerNamespace string
}

TillerReachableConfig is this collector's configuration struct.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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