metrics

package
v0.13.1 Latest Latest
Warning

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

Go to latest
Published: May 29, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClaimRecorder

type ClaimRecorder struct {
	// contains filtered or unexported fields
}

func MustMakeClaimRecorder

func MustMakeClaimRecorder() *ClaimRecorder

func NewClaimRecorder

func NewClaimRecorder() *ClaimRecorder

func (*ClaimRecorder) Collectors

func (r *ClaimRecorder) Collectors() []prometheus.Collector

func (*ClaimRecorder) DeleteClaimMetric

func (r *ClaimRecorder) DeleteClaimMetric(claim string, namespace string)

DeleteCondition deletes the condition metrics for the ref.

func (*ClaimRecorder) DeleteConditionMetricByType added in v0.13.0

func (r *ClaimRecorder) DeleteConditionMetricByType(claim string, namespace string, condition string)

func (*ClaimRecorder) DeletePoolAssociation added in v0.13.0

func (r *ClaimRecorder) DeletePoolAssociation(claim string, namespace string, pool string)

func (*ClaimRecorder) RecordClaimCondition

func (r *ClaimRecorder) RecordClaimCondition(claim *capsulev1beta2.ResourcePoolClaim)

RecordCondition records the condition as given for the ref.

type CustomQuotaRecorder added in v0.13.0

type CustomQuotaRecorder struct {
	ConditionGauge         *prometheus.GaugeVec
	ResourceUsageGauge     *prometheus.GaugeVec
	ResourceLimitGauge     *prometheus.GaugeVec
	ResourceAvailableGauge *prometheus.GaugeVec
	ResourceItemUsageGauge *prometheus.GaugeVec
}

func MustMakeCustomQuotaRecorder added in v0.13.0

func MustMakeCustomQuotaRecorder() *CustomQuotaRecorder

func NewCustomQuotaRecorder added in v0.13.0

func NewCustomQuotaRecorder() *CustomQuotaRecorder

func (*CustomQuotaRecorder) Collectors added in v0.13.0

func (r *CustomQuotaRecorder) Collectors() []prometheus.Collector

func (*CustomQuotaRecorder) DeleteAllMetricsForCustomQuota added in v0.13.0

func (r *CustomQuotaRecorder) DeleteAllMetricsForCustomQuota(name string, namespace string)

func (*CustomQuotaRecorder) DeleteConditionMetricByType added in v0.13.0

func (r *CustomQuotaRecorder) DeleteConditionMetricByType(name string, namespace string, condition string)

type GlobalCustomQuotaRecorder added in v0.13.0

type GlobalCustomQuotaRecorder struct {
	ConditionGauge         *prometheus.GaugeVec
	ResourceUsageGauge     *prometheus.GaugeVec
	ResourceLimitGauge     *prometheus.GaugeVec
	ResourceAvailableGauge *prometheus.GaugeVec
	ResourceItemUsageGauge *prometheus.GaugeVec
}

func MustMakeGlobalCustomQuotaRecorder added in v0.13.0

func MustMakeGlobalCustomQuotaRecorder() *GlobalCustomQuotaRecorder

func NewGlobalCustomQuotaRecorder added in v0.13.0

func NewGlobalCustomQuotaRecorder() *GlobalCustomQuotaRecorder

func (*GlobalCustomQuotaRecorder) Collectors added in v0.13.0

func (*GlobalCustomQuotaRecorder) DeleteAllMetricsForGlobalCustomQuota added in v0.13.0

func (r *GlobalCustomQuotaRecorder) DeleteAllMetricsForGlobalCustomQuota(name string)

func (*GlobalCustomQuotaRecorder) DeleteConditionMetricByType added in v0.13.0

func (r *GlobalCustomQuotaRecorder) DeleteConditionMetricByType(name string, condition string)

type GlobalTenantResourceRecorder added in v0.13.0

type GlobalTenantResourceRecorder struct {
	// contains filtered or unexported fields
}

func MustMakeGlobalTenantResourceRecorder added in v0.13.0

func MustMakeGlobalTenantResourceRecorder() *GlobalTenantResourceRecorder

func NewGlobalTenantResourceRecorder added in v0.13.0

func NewGlobalTenantResourceRecorder() *GlobalTenantResourceRecorder

func (*GlobalTenantResourceRecorder) Collectors added in v0.13.0

func (*GlobalTenantResourceRecorder) DeleteConditionMetricByType added in v0.13.0

func (r *GlobalTenantResourceRecorder) DeleteConditionMetricByType(name string, condition string)

func (*GlobalTenantResourceRecorder) DeleteConditionMetrics added in v0.13.0

func (r *GlobalTenantResourceRecorder) DeleteConditionMetrics(name string)

func (*GlobalTenantResourceRecorder) DeleteMetrics added in v0.13.0

func (r *GlobalTenantResourceRecorder) DeleteMetrics(resourceName string)

DeleteCondition deletes the condition metrics for the ref.

func (*GlobalTenantResourceRecorder) RecordConditions added in v0.13.0

func (r *GlobalTenantResourceRecorder) RecordConditions(resource *capsulev1beta2.GlobalTenantResource)

type ResourcePoolRecorder

type ResourcePoolRecorder struct {
	// contains filtered or unexported fields
}

func MustMakeResourcePoolRecorder

func MustMakeResourcePoolRecorder() *ResourcePoolRecorder

func NewResourcePoolRecorder

func NewResourcePoolRecorder() *ResourcePoolRecorder

func (*ResourcePoolRecorder) CalculateExhaustions

func (r *ResourcePoolRecorder) CalculateExhaustions(
	pool *capsulev1beta2.ResourcePool,
	current map[string]api.PoolExhaustionResource,
)

Emit exhaustion metrics.

func (*ResourcePoolRecorder) Collectors

func (r *ResourcePoolRecorder) Collectors() []prometheus.Collector

func (*ResourcePoolRecorder) DeleteConditionMetricByType added in v0.13.0

func (r *ResourcePoolRecorder) DeleteConditionMetricByType(pool string, condition string)

func (*ResourcePoolRecorder) DeleteResourcePoolMetric

func (r *ResourcePoolRecorder) DeleteResourcePoolMetric(pool string)

Delete all metrics for a resource pool.

func (*ResourcePoolRecorder) DeleteResourcePoolNamespaceMetric

func (r *ResourcePoolRecorder) DeleteResourcePoolNamespaceMetric(pool string, namespace string)

Delete all metrics for a namespace in a resource pool.

func (*ResourcePoolRecorder) DeleteResourcePoolSingleResourceMetric

func (r *ResourcePoolRecorder) DeleteResourcePoolSingleResourceMetric(pool string, resourceName string)

func (*ResourcePoolRecorder) ResourceUsageMetrics

func (r *ResourcePoolRecorder) ResourceUsageMetrics(pool *capsulev1beta2.ResourcePool)

Emit current hard limits and usage for a resource pool.

type TenantRecorder

type TenantRecorder struct {
	TenantNamespaceRelationshipGauge *prometheus.GaugeVec
	TenantNamespaceConditionGauge    *prometheus.GaugeVec
	TenantConditionGauge             *prometheus.GaugeVec
	TenantNamespaceCounterGauge      *prometheus.GaugeVec
	TenantResourceUsageGauge         *prometheus.GaugeVec
	TenantResourceLimitGauge         *prometheus.GaugeVec
}

func MustMakeTenantRecorder

func MustMakeTenantRecorder() *TenantRecorder

func NewTenantRecorder

func NewTenantRecorder() *TenantRecorder

func (*TenantRecorder) Collectors

func (r *TenantRecorder) Collectors() []prometheus.Collector

func (*TenantRecorder) DeleteAllMetricsForNamespace

func (r *TenantRecorder) DeleteAllMetricsForNamespace(namespace string)

func (*TenantRecorder) DeleteAllMetricsForTenant

func (r *TenantRecorder) DeleteAllMetricsForTenant(tenant string)

func (*TenantRecorder) DeleteNamespaceRelationshipMetrics

func (r *TenantRecorder) DeleteNamespaceRelationshipMetrics(namespace string)

DeleteCondition deletes the condition metrics for the ref.

func (*TenantRecorder) DeleteTenantConditionMetricByType

func (r *TenantRecorder) DeleteTenantConditionMetricByType(tenant string, condition string)

func (*TenantRecorder) DeleteTenantConditionMetrics

func (r *TenantRecorder) DeleteTenantConditionMetrics(tenant string)

func (*TenantRecorder) DeleteTenantNamespaceConditionMetricByType

func (r *TenantRecorder) DeleteTenantNamespaceConditionMetricByType(namespace string, condition string)

func (*TenantRecorder) DeleteTenantNamespaceConditionMetrics

func (r *TenantRecorder) DeleteTenantNamespaceConditionMetrics(namespace string)

func (*TenantRecorder) DeleteTenantResourceMetrics

func (r *TenantRecorder) DeleteTenantResourceMetrics(tenant string)

DeleteCondition deletes the condition metrics for the ref.

func (*TenantRecorder) DeleteTenantStatusMetrics

func (r *TenantRecorder) DeleteTenantStatusMetrics(tenant string)

DeleteCondition deletes the condition metrics for the ref.

type TenantResourceRecorder added in v0.13.0

type TenantResourceRecorder struct {
	// contains filtered or unexported fields
}

func MustMakeTenantResourceRecorder added in v0.13.0

func MustMakeTenantResourceRecorder() *TenantResourceRecorder

func NewTenantResourceRecorder added in v0.13.0

func NewTenantResourceRecorder() *TenantResourceRecorder

func (*TenantResourceRecorder) Collectors added in v0.13.0

func (r *TenantResourceRecorder) Collectors() []prometheus.Collector

func (*TenantResourceRecorder) DeleteConditionMetricByType added in v0.13.0

func (r *TenantResourceRecorder) DeleteConditionMetricByType(name string, namespace string, condition string)

func (*TenantResourceRecorder) DeleteConditionMetrics added in v0.13.0

func (r *TenantResourceRecorder) DeleteConditionMetrics(name string, namespace string)

func (*TenantResourceRecorder) DeleteMetrics added in v0.13.0

func (r *TenantResourceRecorder) DeleteMetrics(resourceName string, resourceNamespace string)

DeleteCondition deletes the condition metrics for the ref.

func (*TenantResourceRecorder) RecordConditions added in v0.13.0

func (r *TenantResourceRecorder) RecordConditions(resource *capsulev1beta2.TenantResource)

RecordCondition records the condition as given for the ref.

Jump to

Keyboard shortcuts

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