metrics

package
v0.24.1 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package metrics provides metric support specific to the tenant controller.

Index

Constants

View Source
const (

	// WorkqueueName is the name of the tenant controller workqueue.
	// It is required by the metrics adapter for workqueues.
	WorkqueueName = "tenantctl"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CounterMetric added in v0.16.0

type CounterMetric interface {
	Inc()
}

CounterMetric is a monotonic counter metric.

var (
	// ControllerHeartbeats counts the number of heartbeats of
	// the tenant controller.
	ControllerHeartbeats CounterMetric = &controllerHeartbeats{}
)

type SettableGaugeMetric

type SettableGaugeMetric interface {
	Set(float64)
}

SettableGaugeMetric is a numeric metric that can be set to a value.

var (
	// TenantCount refects the current number of tenants
	// in the system.
	TenantCount SettableGaugeMetric = &tenantCount{}
)

Jump to

Keyboard shortcuts

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