Documentation
      ¶
    
    
  
    
  
    Index ¶
- type ClaimRecorder
 - type ResourcePoolRecorder
 - func (r *ResourcePoolRecorder) CalculateExhaustions(pool *capsulev1beta2.ResourcePool, ...)
 - func (r *ResourcePoolRecorder) Collectors() []prometheus.Collector
 - func (r *ResourcePoolRecorder) DeleteResourcePoolMetric(pool string)
 - func (r *ResourcePoolRecorder) DeleteResourcePoolNamespaceMetric(pool string, namespace string)
 - func (r *ResourcePoolRecorder) DeleteResourcePoolSingleResourceMetric(pool string, resourceName string)
 - func (r *ResourcePoolRecorder) ResourceUsageMetrics(pool *capsulev1beta2.ResourcePool)
 
- type TenantRecorder
 - func (r *TenantRecorder) Collectors() []prometheus.Collector
 - func (r *TenantRecorder) DeleteAllMetricsForNamespace(namespace string)
 - func (r *TenantRecorder) DeleteAllMetricsForTenant(tenant string)
 - func (r *TenantRecorder) DeleteNamespaceRelationshipMetrics(namespace string)
 - func (r *TenantRecorder) DeleteTenantConditionMetricByType(tenant string, condition string)
 - func (r *TenantRecorder) DeleteTenantConditionMetrics(tenant string)
 - func (r *TenantRecorder) DeleteTenantNamespaceConditionMetricByType(namespace string, condition string)
 - func (r *TenantRecorder) DeleteTenantNamespaceConditionMetrics(namespace string)
 - func (r *TenantRecorder) DeleteTenantResourceMetrics(tenant string)
 - func (r *TenantRecorder) DeleteTenantStatusMetrics(tenant string)
 
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClaimRecorder ¶ added in v0.10.0
type ClaimRecorder struct {
	// contains filtered or unexported fields
}
    func MustMakeClaimRecorder ¶ added in v0.10.0
func MustMakeClaimRecorder() *ClaimRecorder
func NewClaimRecorder ¶ added in v0.10.0
func NewClaimRecorder() *ClaimRecorder
func (*ClaimRecorder) Collectors ¶ added in v0.10.0
func (r *ClaimRecorder) Collectors() []prometheus.Collector
func (*ClaimRecorder) DeleteClaimMetric ¶ added in v0.10.0
func (r *ClaimRecorder) DeleteClaimMetric(claim string, namespace string)
DeleteCondition deletes the condition metrics for the ref.
func (*ClaimRecorder) RecordClaimCondition ¶ added in v0.10.0
func (r *ClaimRecorder) RecordClaimCondition(claim *capsulev1beta2.ResourcePoolClaim)
RecordCondition records the condition as given for the ref.
type ResourcePoolRecorder ¶ added in v0.10.0
type ResourcePoolRecorder struct {
	// contains filtered or unexported fields
}
    func MustMakeResourcePoolRecorder ¶ added in v0.10.0
func MustMakeResourcePoolRecorder() *ResourcePoolRecorder
func NewResourcePoolRecorder ¶ added in v0.10.0
func NewResourcePoolRecorder() *ResourcePoolRecorder
func (*ResourcePoolRecorder) CalculateExhaustions ¶ added in v0.10.1
func (r *ResourcePoolRecorder) CalculateExhaustions( pool *capsulev1beta2.ResourcePool, current map[string]api.PoolExhaustionResource, )
Emit exhaustion metrics.
func (*ResourcePoolRecorder) Collectors ¶ added in v0.10.0
func (r *ResourcePoolRecorder) Collectors() []prometheus.Collector
func (*ResourcePoolRecorder) DeleteResourcePoolMetric ¶ added in v0.10.0
func (r *ResourcePoolRecorder) DeleteResourcePoolMetric(pool string)
Delete all metrics for a resource pool.
func (*ResourcePoolRecorder) DeleteResourcePoolNamespaceMetric ¶ added in v0.10.0
func (r *ResourcePoolRecorder) DeleteResourcePoolNamespaceMetric(pool string, namespace string)
Delete all metrics for a namespace in a resource pool.
func (*ResourcePoolRecorder) DeleteResourcePoolSingleResourceMetric ¶ added in v0.10.0
func (r *ResourcePoolRecorder) DeleteResourcePoolSingleResourceMetric(pool string, resourceName string)
func (*ResourcePoolRecorder) ResourceUsageMetrics ¶ added in v0.10.0
func (r *ResourcePoolRecorder) ResourceUsageMetrics(pool *capsulev1beta2.ResourcePool)
Emit current hard limits and usage for a resource pool.
type TenantRecorder ¶ added in v0.10.0
type TenantRecorder struct {
	TenantNamespaceRelationshipGauge *prometheus.GaugeVec
	TenantNamespaceConditionGauge    *prometheus.GaugeVec
	TenantConditionGauge             *prometheus.GaugeVec
	TenantNamespaceCounterGauge      *prometheus.GaugeVec
	TenantResourceUsageGauge         *prometheus.GaugeVec
	TenantResourceLimitGauge         *prometheus.GaugeVec
}
    func MustMakeTenantRecorder ¶ added in v0.10.0
func MustMakeTenantRecorder() *TenantRecorder
func NewTenantRecorder ¶ added in v0.10.0
func NewTenantRecorder() *TenantRecorder
func (*TenantRecorder) Collectors ¶ added in v0.10.0
func (r *TenantRecorder) Collectors() []prometheus.Collector
func (*TenantRecorder) DeleteAllMetricsForNamespace ¶ added in v0.11.1
func (r *TenantRecorder) DeleteAllMetricsForNamespace(namespace string)
func (*TenantRecorder) DeleteAllMetricsForTenant ¶ added in v0.11.1
func (r *TenantRecorder) DeleteAllMetricsForTenant(tenant string)
func (*TenantRecorder) DeleteNamespaceRelationshipMetrics ¶ added in v0.10.3
func (r *TenantRecorder) DeleteNamespaceRelationshipMetrics(namespace string)
DeleteCondition deletes the condition metrics for the ref.
func (*TenantRecorder) DeleteTenantConditionMetricByType ¶ added in v0.11.1
func (r *TenantRecorder) DeleteTenantConditionMetricByType(tenant string, condition string)
func (*TenantRecorder) DeleteTenantConditionMetrics ¶ added in v0.11.1
func (r *TenantRecorder) DeleteTenantConditionMetrics(tenant string)
func (*TenantRecorder) DeleteTenantNamespaceConditionMetricByType ¶ added in v0.11.1
func (r *TenantRecorder) DeleteTenantNamespaceConditionMetricByType(namespace string, condition string)
func (*TenantRecorder) DeleteTenantNamespaceConditionMetrics ¶ added in v0.11.1
func (r *TenantRecorder) DeleteTenantNamespaceConditionMetrics(namespace string)
func (*TenantRecorder) DeleteTenantResourceMetrics ¶ added in v0.10.3
func (r *TenantRecorder) DeleteTenantResourceMetrics(tenant string)
DeleteCondition deletes the condition metrics for the ref.
func (*TenantRecorder) DeleteTenantStatusMetrics ¶ added in v0.10.3
func (r *TenantRecorder) DeleteTenantStatusMetrics(tenant string)
DeleteCondition deletes the condition metrics for the ref.
 Click to show internal directories. 
   Click to hide internal directories.