Documentation
¶
Index ¶
- type ClaimRecorder
- func (r *ClaimRecorder) Collectors() []prometheus.Collector
- func (r *ClaimRecorder) DeleteClaimMetric(claim string, namespace string)
- func (r *ClaimRecorder) DeleteConditionMetricByType(claim string, namespace string, condition string)
- func (r *ClaimRecorder) DeletePoolAssociation(claim string, namespace string, pool string)
- func (r *ClaimRecorder) RecordClaimCondition(claim *capsulev1beta2.ResourcePoolClaim)
- type ConfigRecorder
- func (r *ConfigRecorder) Collectors() []prometheus.Collector
- func (r *ConfigRecorder) DeleteConditionMetricByType(name string, condition string)
- func (r *ConfigRecorder) DeleteConditionMetrics(name string)
- func (r *ConfigRecorder) DeleteMetrics(resourceName string)
- func (r *ConfigRecorder) RecordConditions(resource *capsulev1beta2.CapsuleConfiguration)
- type CustomQuotaRecorder
- type GlobalCustomQuotaRecorder
- type GlobalTenantResourceRecorder
- func (r *GlobalTenantResourceRecorder) Collectors() []prometheus.Collector
- func (r *GlobalTenantResourceRecorder) DeleteConditionMetricByType(name string, condition string)
- func (r *GlobalTenantResourceRecorder) DeleteConditionMetrics(name string)
- func (r *GlobalTenantResourceRecorder) DeleteMetrics(resourceName string)
- func (r *GlobalTenantResourceRecorder) RecordConditions(resource *capsulev1beta2.GlobalTenantResource)
- type ResourcePoolRecorder
- func (r *ResourcePoolRecorder) CalculateExhaustions(pool *capsulev1beta2.ResourcePool, ...)
- func (r *ResourcePoolRecorder) Collectors() []prometheus.Collector
- func (r *ResourcePoolRecorder) DeleteConditionMetricByType(pool string, condition string)
- 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 RuleStatusRecorder
- func (r *RuleStatusRecorder) Collectors() []prometheus.Collector
- func (r *RuleStatusRecorder) DeleteConditionMetricByType(name string, namespace string, condition string)
- func (r *RuleStatusRecorder) DeleteConditionMetrics(name string, namespace string)
- func (r *RuleStatusRecorder) DeleteMetrics(resourceName string, resourceNamespace string)
- func (r *RuleStatusRecorder) RecordConditions(resource *capsulev1beta2.RuleStatus)
- type TenantOwnerRecorder
- func (r *TenantOwnerRecorder) Collectors() []prometheus.Collector
- func (r *TenantOwnerRecorder) DeleteConditionMetricByType(name string, condition string)
- func (r *TenantOwnerRecorder) DeleteConditionMetrics(name string)
- func (r *TenantOwnerRecorder) DeleteMetrics(resourceName string)
- func (r *TenantOwnerRecorder) RecordConditions(resource *capsulev1beta2.TenantOwner)
- 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)
- type TenantResourceRecorder
- func (r *TenantResourceRecorder) Collectors() []prometheus.Collector
- func (r *TenantResourceRecorder) DeleteConditionMetricByType(name string, namespace string, condition string)
- func (r *TenantResourceRecorder) DeleteConditionMetrics(name string, namespace string)
- func (r *TenantResourceRecorder) DeleteMetrics(resourceName string, resourceNamespace string)
- func (r *TenantResourceRecorder) RecordConditions(resource *capsulev1beta2.TenantResource)
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 ConfigRecorder ¶ added in v0.13.8
type ConfigRecorder struct {
// contains filtered or unexported fields
}
func MustMakeConfigRecorder ¶ added in v0.13.8
func MustMakeConfigRecorder() *ConfigRecorder
func NewConfigRecorder ¶ added in v0.13.8
func NewConfigRecorder() *ConfigRecorder
func (*ConfigRecorder) Collectors ¶ added in v0.13.8
func (r *ConfigRecorder) Collectors() []prometheus.Collector
func (*ConfigRecorder) DeleteConditionMetricByType ¶ added in v0.13.8
func (r *ConfigRecorder) DeleteConditionMetricByType(name string, condition string)
func (*ConfigRecorder) DeleteConditionMetrics ¶ added in v0.13.8
func (r *ConfigRecorder) DeleteConditionMetrics(name string)
func (*ConfigRecorder) DeleteMetrics ¶ added in v0.13.8
func (r *ConfigRecorder) DeleteMetrics(resourceName string)
DeleteCondition deletes the condition metrics for the ref.
func (*ConfigRecorder) RecordConditions ¶ added in v0.13.8
func (r *ConfigRecorder) RecordConditions(resource *capsulev1beta2.CapsuleConfiguration)
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
ResourceUsagePercentageGauge *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
ResourceUsagePercentageGauge *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 (r *GlobalCustomQuotaRecorder) Collectors() []prometheus.Collector
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 (r *GlobalTenantResourceRecorder) Collectors() []prometheus.Collector
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 RuleStatusRecorder ¶ added in v0.13.8
type RuleStatusRecorder struct {
// contains filtered or unexported fields
}
func MustMakeRuleStatusRecorder ¶ added in v0.13.8
func MustMakeRuleStatusRecorder() *RuleStatusRecorder
func NewRuleStatusRecorder ¶ added in v0.13.8
func NewRuleStatusRecorder() *RuleStatusRecorder
func (*RuleStatusRecorder) Collectors ¶ added in v0.13.8
func (r *RuleStatusRecorder) Collectors() []prometheus.Collector
func (*RuleStatusRecorder) DeleteConditionMetricByType ¶ added in v0.13.8
func (r *RuleStatusRecorder) DeleteConditionMetricByType(name string, namespace string, condition string)
func (*RuleStatusRecorder) DeleteConditionMetrics ¶ added in v0.13.8
func (r *RuleStatusRecorder) DeleteConditionMetrics(name string, namespace string)
func (*RuleStatusRecorder) DeleteMetrics ¶ added in v0.13.8
func (r *RuleStatusRecorder) DeleteMetrics(resourceName string, resourceNamespace string)
DeleteCondition deletes the condition metrics for the ref.
func (*RuleStatusRecorder) RecordConditions ¶ added in v0.13.8
func (r *RuleStatusRecorder) RecordConditions(resource *capsulev1beta2.RuleStatus)
RecordCondition records the condition as given for the ref.
type TenantOwnerRecorder ¶ added in v0.13.8
type TenantOwnerRecorder struct {
// contains filtered or unexported fields
}
func MustMakeTenantOwnerRecorder ¶ added in v0.13.8
func MustMakeTenantOwnerRecorder() *TenantOwnerRecorder
func NewTenantOwnerRecorder ¶ added in v0.13.8
func NewTenantOwnerRecorder() *TenantOwnerRecorder
func (*TenantOwnerRecorder) Collectors ¶ added in v0.13.8
func (r *TenantOwnerRecorder) Collectors() []prometheus.Collector
func (*TenantOwnerRecorder) DeleteConditionMetricByType ¶ added in v0.13.8
func (r *TenantOwnerRecorder) DeleteConditionMetricByType(name string, condition string)
func (*TenantOwnerRecorder) DeleteConditionMetrics ¶ added in v0.13.8
func (r *TenantOwnerRecorder) DeleteConditionMetrics(name string)
func (*TenantOwnerRecorder) DeleteMetrics ¶ added in v0.13.8
func (r *TenantOwnerRecorder) DeleteMetrics(resourceName string)
DeleteCondition deletes the condition metrics for the ref.
func (*TenantOwnerRecorder) RecordConditions ¶ added in v0.13.8
func (r *TenantOwnerRecorder) RecordConditions(resource *capsulev1beta2.TenantOwner)
RecordCondition records the condition as given for the ref.
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.