collector

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsInvalidConfig

func IsInvalidConfig(err error) bool

IsInvalidConfig asserts invalidConfigError.

func IsNameMatch

func IsNameMatch(err error) bool

IsNameMatch asserts nameMatchError.

Types

type Bridge

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

func NewBridge

func NewBridge(config BridgeConfig) (*Bridge, error)

func (*Bridge) Collect

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

func (*Bridge) Describe

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

type BridgeConfig

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

type Env

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

func NewEnv

func NewEnv(config EnvConfig) (*Env, error)

func (*Env) Collect

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

func (*Env) Describe

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

type EnvConfig

type EnvConfig struct {
	G8sClient versioned.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
	Logger    micrologger.Logger
}

Jump to

Keyboard shortcuts

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