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{} )
Click to show internal directories.
Click to hide internal directories.