collector

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2020 License: Apache-2.0 Imports: 13 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.

Types

type HelmV2Release added in v1.0.0

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

func NewHelmV2Release added in v1.0.0

func NewHelmV2Release(config HelmV2ReleaseConfig) (*HelmV2Release, error)

func (*HelmV2Release) Collect added in v1.0.0

func (h *HelmV2Release) Collect(ch chan<- prometheus.Metric) error

func (*HelmV2Release) Describe added in v1.0.0

func (h *HelmV2Release) Describe(ch chan<- *prometheus.Desc) error

Describe emits the description for the metrics collected here.

type HelmV2ReleaseConfig added in v1.0.0

type HelmV2ReleaseConfig struct {
	K8sClient kubernetes.Interface
	Logger    micrologger.Logger

	TillerNamespace string
}

type OrphanConfigMap added in v0.11.3

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

func NewOrphanConfigMap added in v0.11.3

func NewOrphanConfigMap(config OrphanConfigMapConfig) (*OrphanConfigMap, error)

func (*OrphanConfigMap) Collect added in v0.11.3

func (oc *OrphanConfigMap) Collect(ch chan<- prometheus.Metric) error

func (*OrphanConfigMap) Describe added in v0.11.3

func (oc *OrphanConfigMap) Describe(ch chan<- *prometheus.Desc) error

Describe emits the description for the metrics collected here.

type OrphanConfigMapConfig added in v0.11.3

type OrphanConfigMapConfig struct {
	G8sClient versioned.Interface
	K8sClient kubernetes.Interface
	Logger    micrologger.Logger
}

type OrphanSecret added in v0.11.3

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

func NewOrphanSecret added in v0.11.3

func NewOrphanSecret(config OrphanSecretConfig) (*OrphanSecret, error)

func (*OrphanSecret) Collect added in v0.11.3

func (oc *OrphanSecret) Collect(ch chan<- prometheus.Metric) error

func (*OrphanSecret) Describe added in v0.11.3

func (oc *OrphanSecret) Describe(ch chan<- *prometheus.Desc) error

Describe emits the description for the metrics collected here.

type OrphanSecretConfig added in v0.11.3

type OrphanSecretConfig struct {
	G8sClient versioned.Interface
	K8sClient kubernetes.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 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 {
	K8sClient  k8sclient.Interface
	HelmClient *helmclient.Client
	Logger     micrologger.Logger

	TillerNamespace string
}

Jump to

Keyboard shortcuts

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