metrics

package
v0.0.0-...-1670326 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ControlledJobInfo = prometheus.NewGaugeVec(
		prometheus.GaugeOpts{
			Name: "controlledjob_info",
			Help: "Information about ControlledJobs",
		},
		[]string{"namespace", "controlledjob", "timezone"},
	)
)

Functions

func ControlledJobInfoLabelValuesFor

func ControlledJobInfoLabelValuesFor(controlledJob *batch.ControlledJob) []string

Types

type Watcher

type Watcher struct{}

Watcher implements handler.EventHandler so we can record metrics when ControlledJob resources are modified in the cluster

func (*Watcher) Create

Create implements handler.EventHandler

func (*Watcher) Delete

Delete implements handler.EventHandler

func (*Watcher) Generic

Generic implements handler.EventHandler We need to implement it to satisfy the interface, but we don't expect it to get called in practice, as it's used for external events like GitHub webhook events

func (*Watcher) Update

Update implements handler.EventHandler

Jump to

Keyboard shortcuts

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