collector

package
v5.0.0 Latest Latest
Warning

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

Go to latest
Published: May 25, 2021 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.

Types

type Set

type Set struct {
	*collector.Set
}

Set is basically only a wrapper for the collector implementations. It eases the initialization 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 {
	Logger     micrologger.Logger
	K8sClient  k8sclient.Interface
	Controller string

	NewRuntimeObjectFunc func() runtime.Object
	Selector             labels.Selector
}

type Timestamp

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

func NewTimestamp

func NewTimestamp(config TimestampConfig) (*Timestamp, error)

func (*Timestamp) Collect

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

func (*Timestamp) Describe

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

type TimestampConfig

type TimestampConfig struct {
	Logger               micrologger.Logger
	K8sClient            k8sclient.Interface
	NewRuntimeObjectFunc func() runtime.Object
	Selector             labels.Selector

	Controller string
}

Jump to

Keyboard shortcuts

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