Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( WatcherErrors = prometheus.NewCounterVec(prometheus.CounterOpts{ Namespace: consts.MetricsNamespace, Name: "watcher_errors_total", Help: "The total number of errors for a given watcher type.", ConstLabels: nil, }, []string{"watcher", "error"}) WatcherEvents = prometheus.NewCounterVec(prometheus.CounterOpts{ Namespace: consts.MetricsNamespace, Name: "watcher_events_total", Help: "The total number of events for a given watcher type.", ConstLabels: nil, }, []string{"watcher"}) )
Functions ¶
func GetWatcherErrors ¶
func GetWatcherErrors(watcherType Watcher, watcherError ErrorType) prometheus.Counter
Get a new handle on an WatcherEvents metric for a watcher type
func GetWatcherEvents ¶
func GetWatcherEvents(watcherType Watcher) prometheus.Counter
Get a new handle on an WatcherEvents metric for a watcher type
func InitMetrics ¶ added in v0.11.0
func InitMetrics(registry *prometheus.Registry)
Types ¶
Click to show internal directories.
Click to hide internal directories.