collector

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ScheduleDesc *prometheus.Desc = prometheus.NewDesc(
		prometheus.BuildFQName("todo_operator", "todo", "info"),
		"Todo description of the todo operator todo metric",
		[]string{
			labelInstallation,
			labelClusterID,
		},
		nil,
	)
)

Functions

This section is empty.

Types

type Set

type Set struct {
	*collector.Set
}

Set is basically only a wrapper for the operator's collector implementations. It eases the initialization and prevents some weird import mess so we do not have to alias packages. There is also the benefit of the helper type kept private so we do not need to expose this magic.

func NewSet

func NewSet(config SetConfig) (*Set, error)

type SetConfig

type SetConfig struct {
	K8sClient kubernetes.Interface
	Logger    micrologger.Logger
}

type Todo

type Todo struct {
}

func NewTodo

func NewTodo(config TodoConfig) (*Todo, error)

func (*Todo) Collect

func (r *Todo) Collect(ch chan<- prometheus.Metric) error

func (*Todo) Describe

func (r *Todo) Describe(ch chan<- *prometheus.Desc) error

type TodoConfig

type TodoConfig struct {
}

Jump to

Keyboard shortcuts

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