watchermetrics

package
v0.8.20 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	WatcherErrors = promauto.NewCounterVec(prometheus.CounterOpts{
		Name:        consts.MetricNamePrefix + "watcher_errors",
		Help:        "The total number of errors for a given watcher type.",
		ConstLabels: nil,
	}, []string{"watcher", "error"})
	WatcherEvents = promauto.NewCounterVec(prometheus.CounterOpts{
		Name:        consts.MetricNamePrefix + "watcher_events",
		Help:        "The total number of events for a given watcher type.",
		ConstLabels: nil,
	}, []string{"watcher"})
)

Functions

func GetWatcherErrors

func GetWatcherErrors(watcherType string, watcherError ErrorType) prometheus.Counter

Get a new handle on an WatcherEvents metric for a watcher type

func GetWatcherEvents

func GetWatcherEvents(watcherType string) prometheus.Counter

Get a new handle on an WatcherEvents metric for a watcher type

Types

type ErrorType

type ErrorType string
const (
	FailedToGetPodError ErrorType = "failed_to_get_pod"
)

Jump to

Keyboard shortcuts

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